summaryrefslogtreecommitdiff
path: root/core/Messenger.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/Messenger.h')
-rw-r--r--core/Messenger.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/core/Messenger.h b/core/Messenger.h
index 55c86682..fa0daf41 100644
--- a/core/Messenger.h
+++ b/core/Messenger.h
@@ -211,9 +211,15 @@ void m_callback_userstatus(void (*function)(int, USERSTATUS));
211 in that case, you should discard it. */ 211 in that case, you should discard it. */
212void m_callback_read_receipt(void (*function)(int, uint32_t)); 212void m_callback_read_receipt(void (*function)(int, uint32_t));
213 213
214/* set the callback for friend status changes 214/* set the callback for conenction status changes
215 function(int friendnumber, uint8_t status) */ 215 function(int friendnumber, uint8_t status)
216void m_callback_friendstatus(void (*function)(int, uint8_t)); 216 status:
217 0 -- friend went offline after being previously online
218 1 -- friend went online
219 note that this callback is not called when adding friends, thus the "after
220 being previously online" part. it's assumed that when adding friends,
221 their connection status is offline. */
222void m_callback_connectionstatus(void (*function)(int, uint8_t));
217 223
218/* run this at startup 224/* run this at startup
219 returns 0 if no connection problems 225 returns 0 if no connection problems