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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/friend_requests.h b/toxcore/friend_requests.h
index 8d429a7e..e669607b 100644
--- a/toxcore/friend_requests.h
+++ b/toxcore/friend_requests.h
@@ -51,17 +51,17 @@ typedef struct {
51 * data is the data in the request and length is the length. 51 * data is the data in the request and length is the length.
52 * Maximum length of data is MAX_FRIEND_REQUEST_DATA_SIZE. 52 * Maximum length of data is MAX_FRIEND_REQUEST_DATA_SIZE.
53 */ 53 */
54int send_friendrequest(Onion_Client *onion_c, uint8_t *public_key, uint32_t nospam_num, uint8_t *data, uint32_t length); 54int send_friendrequest(const Onion_Client *onion_c, const uint8_t *public_key, uint32_t nospam_num, const uint8_t *data, uint32_t length);
55/* Set and get the nospam variable used to prevent one type of friend request spam. */ 55/* Set and get the nospam variable used to prevent one type of friend request spam. */
56void set_nospam(Friend_Requests *fr, uint32_t num); 56void set_nospam(Friend_Requests *fr, uint32_t num);
57uint32_t get_nospam(Friend_Requests *fr); 57uint32_t get_nospam(const Friend_Requests *fr);
58 58
59/* Remove client id from received_requests list. 59/* Remove client id from received_requests list.
60 * 60 *
61 * return 0 if it removed it successfully. 61 * return 0 if it removed it successfully.
62 * return -1 if it didn't find it. 62 * return -1 if it didn't find it.
63 */ 63 */
64int remove_request_received(Friend_Requests *fr, uint8_t *client_id); 64int remove_request_received(Friend_Requests *fr, const uint8_t *client_id);
65 65
66/* Set the function that will be executed when a friend request for us is received. 66/* Set the function that will be executed when a friend request for us is received.
67 * Function format is function(uint8_t * public_key, uint8_t * data, uint16_t length, void * userdata) 67 * Function format is function(uint8_t * public_key, uint8_t * data, uint16_t length, void * userdata)