diff options
author | Maxim Biro <nurupo.contributions@gmail.com> | 2013-08-08 01:46:27 -0400 |
---|---|---|
committer | Maxim Biro <nurupo.contributions@gmail.com> | 2013-08-08 02:12:19 -0400 |
commit | f66b6ce50b4dc486290eaff1e078b2fe75975c65 (patch) | |
tree | cf945c1adf9d533cf7960d6087827786dba1a983 /core/Messenger.h | |
parent | 225f74e844299c405b744a9d03f4fcc0430b430a (diff) |
Made a callback for Friend.status change
Diffstat (limited to 'core/Messenger.h')
-rw-r--r-- | core/Messenger.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/Messenger.h b/core/Messenger.h index d2fa8945..569fcab1 100644 --- a/core/Messenger.h +++ b/core/Messenger.h | |||
@@ -197,6 +197,10 @@ void m_callback_statusmessage(void (*function)(int, uint8_t *, uint16_t)); | |||
197 | in that case, you should discard it. */ | 197 | in that case, you should discard it. */ |
198 | void m_callback_read_receipt(void (*function)(int, uint32_t)); | 198 | void m_callback_read_receipt(void (*function)(int, uint32_t)); |
199 | 199 | ||
200 | /* set the callback for friend status changes | ||
201 | function(int friendnumber, uint8_t status) */ | ||
202 | void m_callback_friendstatus(void (*function)(int, uint8_t)); | ||
203 | |||
200 | /* run this at startup | 204 | /* run this at startup |
201 | returns 0 if no connection problems | 205 | returns 0 if no connection problems |
202 | returns -1 if there are problems */ | 206 | returns -1 if there are problems */ |