diff options
Diffstat (limited to 'core/friend_requests.h')
-rw-r--r-- | core/friend_requests.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/core/friend_requests.h b/core/friend_requests.h index fb19a709..29bc2b88 100644 --- a/core/friend_requests.h +++ b/core/friend_requests.h | |||
@@ -21,11 +21,9 @@ | |||
21 | * | 21 | * |
22 | */ | 22 | */ |
23 | 23 | ||
24 | |||
25 | #ifndef FRIEND_REQUESTS_H | 24 | #ifndef FRIEND_REQUESTS_H |
26 | #define FRIEND_REQUESTS_H | 25 | #define FRIEND_REQUESTS_H |
27 | 26 | ||
28 | |||
29 | #include "DHT.h" | 27 | #include "DHT.h" |
30 | #include "net_crypto.h" | 28 | #include "net_crypto.h" |
31 | 29 | ||
@@ -37,7 +35,6 @@ extern "C" { | |||
37 | 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. */ |
38 | int send_friendrequest(uint8_t * public_key, uint8_t * data, uint32_t length); | 36 | int send_friendrequest(uint8_t * public_key, uint8_t * data, uint32_t length); |
39 | 37 | ||
40 | |||
41 | /* set the function that will be executed when a friend request for us is received. | 38 | /* set the function that will be executed when a friend request for us is received. |
42 | function format is function(uint8_t * public_key, uint8_t * data, uint16_t length) */ | 39 | function format is function(uint8_t * public_key, uint8_t * data, uint16_t length) */ |
43 | void callback_friendrequest(void (*function)(uint8_t *, uint8_t *, uint16_t)); | 40 | void callback_friendrequest(void (*function)(uint8_t *, uint8_t *, uint16_t)); |
@@ -47,8 +44,6 @@ void callback_friendrequest(void (*function)(uint8_t *, uint8_t *, uint16_t)); | |||
47 | return 1 if it didn't handle the packet or if the packet was shit. */ | 44 | return 1 if it didn't handle the packet or if the packet was shit. */ |
48 | int friendreq_handlepacket(uint8_t * packet, uint32_t length, IP_Port source); | 45 | int friendreq_handlepacket(uint8_t * packet, uint32_t length, IP_Port source); |
49 | 46 | ||
50 | |||
51 | |||
52 | #ifdef __cplusplus | 47 | #ifdef __cplusplus |
53 | } | 48 | } |
54 | #endif | 49 | #endif |