diff options
Diffstat (limited to 'toxcore/Messenger.h')
-rw-r--r-- | toxcore/Messenger.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/toxcore/Messenger.h b/toxcore/Messenger.h index 1182962b..65fa19a5 100644 --- a/toxcore/Messenger.h +++ b/toxcore/Messenger.h | |||
@@ -267,7 +267,7 @@ int m_friend_exists(Messenger *m, int friendnumber); | |||
267 | * return the message id if packet was successfully put into the send queue. | 267 | * return the message id if packet was successfully put into the send queue. |
268 | * return 0 if it was not. | 268 | * return 0 if it was not. |
269 | * | 269 | * |
270 | * You will want to retain the return value, it will be passed to your read receipt callback | 270 | * You will want to retain the return value, it will be passed to your read_receipt callback |
271 | * if one is received. | 271 | * if one is received. |
272 | * m_sendmessage_withid will send a message with the id of your choosing, | 272 | * m_sendmessage_withid will send a message with the id of your choosing, |
273 | * however we can generate an id for you by calling plain m_sendmessage. | 273 | * however we can generate an id for you by calling plain m_sendmessage. |
@@ -277,10 +277,16 @@ uint32_t m_sendmessage_withid(Messenger *m, int friendnumber, uint32_t theid, ui | |||
277 | 277 | ||
278 | /* Send an action to an online friend. | 278 | /* Send an action to an online friend. |
279 | * | 279 | * |
280 | * return 1 if packet was successfully put into the send queue. | 280 | * return the message id if packet was successfully put into the send queue. |
281 | * return 0 if it was not. | 281 | * return 0 if it was not. |
282 | * | ||
283 | * You will want to retain the return value, it will be passed to your read_receipt callback | ||
284 | * if one is received. | ||
285 | * m_sendaction_withid will send an action message with the id of your choosing, | ||
286 | * however we can generate an id for you by calling plain m_sendaction. | ||
282 | */ | 287 | */ |
283 | int m_sendaction(Messenger *m, int friendnumber, uint8_t *action, uint32_t length); | 288 | uint32_t m_sendaction(Messenger *m, int friendnumber, uint8_t *action, uint32_t length); |
289 | uint32_t m_sendaction_withid(Messenger *m, int friendnumber, uint32_t theid, uint8_t *action, uint32_t length); | ||
284 | 290 | ||
285 | /* Set the name and name_length of a friend. | 291 | /* Set the name and name_length of a friend. |
286 | * name must be a string of maximum MAX_NAME_LENGTH length. | 292 | * name must be a string of maximum MAX_NAME_LENGTH length. |