diff options
author | Marc Schütz <schuetzm@gmx.net> | 2014-06-13 22:18:37 +0200 |
---|---|---|
committer | Marc Schütz <schuetzm@gmx.net> | 2014-06-13 22:18:37 +0200 |
commit | 920a87be35e005fc8fe88599dede70cac56d7d6a (patch) | |
tree | 17456257194bd8db1d95afc17cfb0c2fe8ea68fa /toxcore/friend_requests.h | |
parent | 5a34595f58d0739d60d363c7f6557665e85eeb18 (diff) |
Const correctness in toxcore/friend_requests.c
Diffstat (limited to 'toxcore/friend_requests.h')
-rw-r--r-- | toxcore/friend_requests.h | 6 |
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 | */ |
54 | int send_friendrequest(Onion_Client *onion_c, uint8_t *public_key, uint32_t nospam_num, uint8_t *data, uint32_t length); | 54 | int 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. */ |
56 | void set_nospam(Friend_Requests *fr, uint32_t num); | 56 | void set_nospam(Friend_Requests *fr, uint32_t num); |
57 | uint32_t get_nospam(Friend_Requests *fr); | 57 | uint32_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 | */ |
64 | int remove_request_received(Friend_Requests *fr, uint8_t *client_id); | 64 | int 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) |