summaryrefslogtreecommitdiff
path: root/toxcore/friend_requests.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/friend_requests.h')
-rw-r--r--toxcore/friend_requests.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/toxcore/friend_requests.h b/toxcore/friend_requests.h
index 04863948..e3a03a51 100644
--- a/toxcore/friend_requests.h
+++ b/toxcore/friend_requests.h
@@ -30,14 +30,12 @@ typedef void fr_friend_request_cb(void *object, const uint8_t *public_key, const
30 void *user_data); 30 void *user_data);
31 31
32/* Set the function that will be executed when a friend request for us is received. 32/* Set the function that will be executed when a friend request for us is received.
33 * Function format is function(uint8_t * public_key, uint8_t * data, size_t length, void * userdata)
34 */ 33 */
35void callback_friendrequest(Friend_Requests *fr, fr_friend_request_cb *function, void *object); 34void callback_friendrequest(Friend_Requests *fr, fr_friend_request_cb *function, void *object);
36 35
37typedef int filter_function_cb(const uint8_t *public_key, void *user_data); 36typedef int filter_function_cb(const uint8_t *public_key, void *user_data);
38 37
39/* Set the function used to check if a friend request should be displayed to the user or not. 38/* Set the function used to check if a friend request should be displayed to the user or not.
40 * Function format is int function(uint8_t * public_key, void * userdata)
41 * It must return 0 if the request is ok (anything else if it is bad.) 39 * It must return 0 if the request is ok (anything else if it is bad.)
42 */ 40 */
43void set_filter_function(Friend_Requests *fr, filter_function_cb *function, void *userdata); 41void set_filter_function(Friend_Requests *fr, filter_function_cb *function, void *userdata);