diff options
Diffstat (limited to 'toxcore/friend_requests.h')
-rw-r--r-- | toxcore/friend_requests.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/toxcore/friend_requests.h b/toxcore/friend_requests.h index 97cd3164..77c3af68 100644 --- a/toxcore/friend_requests.h +++ b/toxcore/friend_requests.h | |||
@@ -41,14 +41,15 @@ uint32_t get_nospam(const Friend_Requests *fr); | |||
41 | */ | 41 | */ |
42 | int remove_request_received(Friend_Requests *fr, const uint8_t *real_pk); | 42 | int remove_request_received(Friend_Requests *fr, const uint8_t *real_pk); |
43 | 43 | ||
44 | typedef void fr_friend_request_cb(void *, const uint8_t *, const uint8_t *, size_t, void *); | 44 | typedef void fr_friend_request_cb(void *object, const uint8_t *public_key, const uint8_t *message, size_t length, |
45 | void *user_data); | ||
45 | 46 | ||
46 | /* Set the function that will be executed when a friend request for us is received. | 47 | /* Set the function that will be executed when a friend request for us is received. |
47 | * Function format is function(uint8_t * public_key, uint8_t * data, size_t length, void * userdata) | 48 | * Function format is function(uint8_t * public_key, uint8_t * data, size_t length, void * userdata) |
48 | */ | 49 | */ |
49 | void callback_friendrequest(Friend_Requests *fr, fr_friend_request_cb *function, void *object); | 50 | void callback_friendrequest(Friend_Requests *fr, fr_friend_request_cb *function, void *object); |
50 | 51 | ||
51 | typedef int filter_function_cb(const uint8_t *, void *); | 52 | typedef int filter_function_cb(const uint8_t *public_key, void *user_data); |
52 | 53 | ||
53 | /* Set the function used to check if a friend request should be displayed to the user or not. | 54 | /* Set the function used to check if a friend request should be displayed to the user or not. |
54 | * Function format is int function(uint8_t * public_key, void * userdata) | 55 | * Function format is int function(uint8_t * public_key, void * userdata) |