summaryrefslogtreecommitdiff
path: root/toxcore/friend_requests.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2015-02-17 15:49:22 -0500
committerirungentoo <irungentoo@gmail.com>2015-02-17 15:49:22 -0500
commitc6a59e64b7a7fb86ed8a99c21a0b7b023559b0ea (patch)
treeb987c1382e0631bc91a9cd50438b58622d8d901b /toxcore/friend_requests.h
parent7cefc9c4582c367092cd6187ea924da9a1fcf2f0 (diff)
Updated types in Messenger callbacks to fit with the ones in the new api.
Friend number changed from int32_t to uint32_t. Some lengths changed to size_t.
Diffstat (limited to 'toxcore/friend_requests.h')
-rw-r--r--toxcore/friend_requests.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/friend_requests.h b/toxcore/friend_requests.h
index 86069f3b..ae21f7dc 100644
--- a/toxcore/friend_requests.h
+++ b/toxcore/friend_requests.h
@@ -30,7 +30,7 @@
30 30
31typedef struct { 31typedef struct {
32 uint32_t nospam; 32 uint32_t nospam;
33 void (*handle_friendrequest)(void *, const uint8_t *, const uint8_t *, uint16_t, void *); 33 void (*handle_friendrequest)(void *, const uint8_t *, const uint8_t *, size_t, void *);
34 uint8_t handle_friendrequest_isset; 34 uint8_t handle_friendrequest_isset;
35 void *handle_friendrequest_object; 35 void *handle_friendrequest_object;
36 void *handle_friendrequest_userdata; 36 void *handle_friendrequest_userdata;
@@ -59,9 +59,9 @@ uint32_t get_nospam(const Friend_Requests *fr);
59int remove_request_received(Friend_Requests *fr, const uint8_t *real_pk); 59int remove_request_received(Friend_Requests *fr, const uint8_t *real_pk);
60 60
61/* Set the function that will be executed when a friend request for us is received. 61/* Set the function that will be executed when a friend request for us is received.
62 * Function format is function(uint8_t * public_key, uint8_t * data, uint16_t length, void * userdata) 62 * Function format is function(uint8_t * public_key, uint8_t * data, size_t length, void * userdata)
63 */ 63 */
64void callback_friendrequest(Friend_Requests *fr, void (*function)(void *, const uint8_t *, const uint8_t *, uint16_t, 64void callback_friendrequest(Friend_Requests *fr, void (*function)(void *, const uint8_t *, const uint8_t *, size_t,
65 void *), void *object, void *userdata); 65 void *), void *object, void *userdata);
66 66
67/* Set the function used to check if a friend request should be displayed to the user or not. 67/* Set the function used to check if a friend request should be displayed to the user or not.