summaryrefslogtreecommitdiff
path: root/toxcore/friend_requests.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-03-21 19:27:17 -0400
committerirungentoo <irungentoo@gmail.com>2014-03-21 19:27:17 -0400
commit04001b2ec36f5492e441fb68f3ff74e1507c6f26 (patch)
tree2620bc13bf60d30f34bc061342ee81da87c8e354 /toxcore/friend_requests.h
parentd2d896547048252dbf92727546546e788f20b252 (diff)
Friends client id is now removed from the request received list when he is deleted.
Diffstat (limited to 'toxcore/friend_requests.h')
-rw-r--r--toxcore/friend_requests.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/toxcore/friend_requests.h b/toxcore/friend_requests.h
index 722c7431..eab359f0 100644
--- a/toxcore/friend_requests.h
+++ b/toxcore/friend_requests.h
@@ -55,6 +55,13 @@ int send_friendrequest(Onion_Client *onion_c, uint8_t *public_key, uint32_t nosp
55void set_nospam(Friend_Requests *fr, uint32_t num); 55void set_nospam(Friend_Requests *fr, uint32_t num);
56uint32_t get_nospam(Friend_Requests *fr); 56uint32_t get_nospam(Friend_Requests *fr);
57 57
58/* Remove client id from received_requests list.
59 *
60 * return 0 if it removed it successfully.
61 * return -1 if it didn't find it.
62 */
63int remove_request_received(Friend_Requests *fr, uint8_t *client_id);
64
58/* Set the function that will be executed when a friend request for us is received. 65/* 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, void * userdata) 66 * Function format is function(uint8_t * public_key, uint8_t * data, uint16_t length, void * userdata)
60 */ 67 */