diff options
Diffstat (limited to 'core/friend_requests.h')
-rw-r--r-- | core/friend_requests.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/friend_requests.h b/core/friend_requests.h index cc31155e..2ebd557b 100644 --- a/core/friend_requests.h +++ b/core/friend_requests.h | |||
@@ -40,7 +40,7 @@ typedef struct { | |||
40 | /*NOTE: the following is just a temporary fix for the multiple friend requests received at the same time problem | 40 | /*NOTE: the following is just a temporary fix for the multiple friend requests received at the same time problem |
41 | TODO: Make this better (This will most likely tie in with the way we will handle spam.)*/ | 41 | TODO: Make this better (This will most likely tie in with the way we will handle spam.)*/ |
42 | 42 | ||
43 | #define MAX_RECEIVED_STORED 32 | 43 | #define MAX_RECEIVED_STORED 32 |
44 | 44 | ||
45 | uint8_t received_requests[MAX_RECEIVED_STORED][crypto_box_PUBLICKEYBYTES]; | 45 | uint8_t received_requests[MAX_RECEIVED_STORED][crypto_box_PUBLICKEYBYTES]; |
46 | uint16_t received_requests_index; | 46 | uint16_t received_requests_index; |
@@ -57,7 +57,8 @@ uint32_t get_nospam(Friend_Requests *fr); | |||
57 | 57 | ||
58 | /* set the function that will be executed when a friend request for us is received. | 58 | /* set the function that will be executed when a friend request for us is received. |
59 | function format is function(uint8_t * public_key, uint8_t * data, uint16_t length) */ | 59 | function format is function(uint8_t * public_key, uint8_t * data, uint16_t length) */ |
60 | void callback_friendrequest(Friend_Requests *fr, void (*function)(uint8_t *, uint8_t *, uint16_t, void *), void *userdata); | 60 | void callback_friendrequest(Friend_Requests *fr, void (*function)(uint8_t *, uint8_t *, uint16_t, void *), |
61 | void *userdata); | ||
61 | 62 | ||
62 | /* sets up friendreq packet handlers */ | 63 | /* sets up friendreq packet handlers */ |
63 | void friendreq_init(Friend_Requests *fr, Net_Crypto *c); | 64 | void friendreq_init(Friend_Requests *fr, Net_Crypto *c); |