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 e6948b6c..91571775 100644 --- a/toxcore/friend_requests.h +++ b/toxcore/friend_requests.h | |||
@@ -41,11 +41,12 @@ 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 *); | ||
45 | |||
44 | /* Set the function that will be executed when a friend request for us is received. | 46 | /* Set the function that will be executed when a friend request for us is received. |
45 | * Function format is function(uint8_t * public_key, uint8_t * data, size_t length, void * userdata) | 47 | * Function format is function(uint8_t * public_key, uint8_t * data, size_t length, void * userdata) |
46 | */ | 48 | */ |
47 | void callback_friendrequest(Friend_Requests *fr, void (*function)(void *, const uint8_t *, const uint8_t *, size_t, | 49 | void callback_friendrequest(Friend_Requests *fr, fr_friend_request_cb *function, void *object); |
48 | void *), void *object); | ||
49 | 50 | ||
50 | /* Set the function used to check if a friend request should be displayed to the user or not. | 51 | /* Set the function used to check if a friend request should be displayed to the user or not. |
51 | * Function format is int function(uint8_t * public_key, void * userdata) | 52 | * Function format is int function(uint8_t * public_key, void * userdata) |