1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-04 19:56:45 +02:00

implemented status and connectionstatus callbacks

This commit is contained in:
Jfreegman
2013-09-04 21:25:59 -04:00
parent 2f93081a42
commit f5695a4b3e
6 changed files with 183 additions and 17 deletions

View File

@ -91,9 +91,11 @@ static Tox *init_tox()
Tox *m = tox_new();
/* Callbacks */
tox_callback_connectionstatus(m, on_connectionchange, NULL);
tox_callback_friendrequest(m, on_request, NULL);
tox_callback_friendmessage(m, on_message, NULL);
tox_callback_namechange(m, on_nickchange, NULL);
tox_callback_userstatus(m, on_statuschange, NULL);
tox_callback_statusmessage(m, on_statusmessagechange, NULL);
tox_callback_action(m, on_action, NULL);
#ifdef __linux__