summaryrefslogtreecommitdiff
path: root/core/friend_requests.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/friend_requests.h')
-rw-r--r--core/friend_requests.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/friend_requests.h b/core/friend_requests.h
index f18107ce..0b75fd60 100644
--- a/core/friend_requests.h
+++ b/core/friend_requests.h
@@ -33,7 +33,12 @@ extern "C" {
33 33
34/* Try to send a friendrequest to peer with public_key 34/* Try to send a friendrequest to peer with public_key
35 data is the data in the request and length is the length. */ 35 data is the data in the request and length is the length. */
36int send_friendrequest(uint8_t *public_key, uint8_t *data, uint32_t length); 36int send_friendrequest(uint8_t * public_key, uint32_t nospam_num, uint8_t * data, uint32_t length);
37/*
38 * Set and get the nospam variable used to prevent one type of friend request spam
39 */
40void set_nospam(uint32_t num);
41uint32_t get_nospam();
37 42
38/* set the function that will be executed when a friend request for us is received. 43/* set the function that will be executed when a friend request for us is received.
39 function format is function(uint8_t * public_key, uint8_t * data, uint16_t length) */ 44 function format is function(uint8_t * public_key, uint8_t * data, uint16_t length) */