diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-02-19 17:03:05 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-02-20 21:36:05 +0000 |
commit | 95c03e0e85a0a87418a98c9d832dd9ada680adb9 (patch) | |
tree | be7f3a525a54610b42b1f22f669f48fd0c94aa52 /toxcore/tox.c | |
parent | 03b55cde1a98b02f9019f068340094b5062857d1 (diff) |
Make the "persistent conference" callback changes new functions.
We can now revert the changes to the callbacks and keep supporting them
until clients have moved off them.
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r-- | toxcore/tox.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c index 6ca52604..747411f1 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -1103,12 +1103,23 @@ void tox_callback_conference_title(Tox *tox, tox_conference_title_cb *callback) | |||
1103 | g_callback_group_title((Group_Chats *)m->conferences_object, callback); | 1103 | g_callback_group_title((Group_Chats *)m->conferences_object, callback); |
1104 | } | 1104 | } |
1105 | 1105 | ||
1106 | void tox_callback_conference_peer_name(Tox *tox, tox_conference_peer_name_cb *callback) | ||
1107 | { | ||
1108 | Messenger *m = tox; | ||
1109 | g_callback_peer_name((Group_Chats *)m->conferences_object, callback); | ||
1110 | } | ||
1111 | |||
1112 | void tox_callback_conference_peer_list_changed(Tox *tox, tox_conference_peer_list_changed_cb *callback) | ||
1113 | { | ||
1114 | Messenger *m = tox; | ||
1115 | g_callback_peer_list_changed((Group_Chats *)m->conferences_object, callback); | ||
1116 | } | ||
1117 | |||
1106 | void tox_callback_conference_namelist_change(Tox *tox, tox_conference_namelist_change_cb *callback) | 1118 | void tox_callback_conference_namelist_change(Tox *tox, tox_conference_namelist_change_cb *callback) |
1107 | { | 1119 | { |
1108 | Messenger *m = tox; | 1120 | Messenger *m = tox; |
1109 | g_callback_group_namelistchange((Group_Chats *)m->conferences_object, (void (*)(struct Messenger *, uint32_t, uint32_t, | 1121 | g_callback_group_namelistchange((Group_Chats *)m->conferences_object, |
1110 | uint8_t, | 1122 | (void (*)(struct Messenger *, uint32_t, uint32_t, int, void *))callback); |
1111 | void *))callback); | ||
1112 | } | 1123 | } |
1113 | 1124 | ||
1114 | uint32_t tox_conference_new(Tox *tox, TOX_ERR_CONFERENCE_NEW *error) | 1125 | uint32_t tox_conference_new(Tox *tox, TOX_ERR_CONFERENCE_NEW *error) |