From 04001b2ec36f5492e441fb68f3ff74e1507c6f26 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Fri, 21 Mar 2014 19:27:17 -0400 Subject: Friends client id is now removed from the request received list when he is deleted. --- toxcore/friend_requests.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'toxcore/friend_requests.h') 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 void set_nospam(Friend_Requests *fr, uint32_t num); uint32_t get_nospam(Friend_Requests *fr); +/* Remove client id from received_requests list. + * + * return 0 if it removed it successfully. + * return -1 if it didn't find it. + */ +int remove_request_received(Friend_Requests *fr, uint8_t *client_id); + /* Set the function that will be executed when a friend request for us is received. * Function format is function(uint8_t * public_key, uint8_t * data, uint16_t length, void * userdata) */ -- cgit v1.2.3