summaryrefslogtreecommitdiff
path: root/core/friend_requests.h
diff options
context:
space:
mode:
authoralek900 <alek900@gmail.com>2013-08-12 14:23:46 +0200
committeralek900 <alek900@gmail.com>2013-08-12 14:23:46 +0200
commit8d3e68b74d8ff0fad398617ea37eb4e5422f3718 (patch)
tree3f6a986915b116af51f438f656bce3d6709a267e /core/friend_requests.h
parent33e104f32ff2852da31dbcff1441ea4bdc47fe95 (diff)
Added support for userdata in callbacks
Diffstat (limited to 'core/friend_requests.h')
-rw-r--r--core/friend_requests.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/friend_requests.h b/core/friend_requests.h
index 708d8f66..f18107ce 100644
--- a/core/friend_requests.h
+++ b/core/friend_requests.h
@@ -37,7 +37,7 @@ int send_friendrequest(uint8_t *public_key, uint8_t *data, uint32_t length);
37 37
38/* set the function that will be executed when a friend request for us is received. 38/* set the function that will be executed when a friend request for us is received.
39 function format is function(uint8_t * public_key, uint8_t * data, uint16_t length) */ 39 function format is function(uint8_t * public_key, uint8_t * data, uint16_t length) */
40void callback_friendrequest(void (*function)(uint8_t *, uint8_t *, uint16_t)); 40void callback_friendrequest(void (*function)(uint8_t *, uint8_t *, uint16_t, void*), void* userdata);
41 41
42/* sets up friendreq packet handlers */ 42/* sets up friendreq packet handlers */
43void friendreq_init(void); 43void friendreq_init(void);