diff options
author | irungentoo <irungentoo@gmail.com> | 2014-01-17 13:35:40 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-01-17 13:35:40 -0500 |
commit | cd2474a2f6d8a8831fcfb1f9f33e0192fa287842 (patch) | |
tree | 5e803fa071fd28daf16b99ff1c3d4e3a34240a50 /toxcore/friend_requests.h | |
parent | 9fcb707ec457b74f32ad48add5b93c0090c73f61 (diff) |
Incorporated onion into Tox.
Fixed a couple of issues related to that.
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 c655669d..732dc4a2 100644 --- a/toxcore/friend_requests.h +++ b/toxcore/friend_requests.h | |||
@@ -24,7 +24,7 @@ | |||
24 | #ifndef FRIEND_REQUESTS_H | 24 | #ifndef FRIEND_REQUESTS_H |
25 | #define FRIEND_REQUESTS_H | 25 | #define FRIEND_REQUESTS_H |
26 | 26 | ||
27 | #include "DHT.h" | 27 | #include "onion_client.h" |
28 | #include "net_crypto.h" | 28 | #include "net_crypto.h" |
29 | 29 | ||
30 | 30 | ||
@@ -49,7 +49,7 @@ typedef struct { | |||
49 | /* Try to send a friendrequest to peer with public_key. | 49 | /* Try to send a friendrequest to peer with public_key. |
50 | * data is the data in the request and length is the length. | 50 | * data is the data in the request and length is the length. |
51 | */ | 51 | */ |
52 | int send_friendrequest(DHT *dht, uint8_t *public_key, uint32_t nospam_num, uint8_t *data, uint32_t length); | 52 | int send_friendrequest(Onion_Client *onion_c, uint8_t *public_key, uint32_t nospam_num, uint8_t *data, uint32_t length); |
53 | /* Set and get the nospam variable used to prevent one type of friend request spam. */ | 53 | /* Set and get the nospam variable used to prevent one type of friend request spam. */ |
54 | void set_nospam(Friend_Requests *fr, uint32_t num); | 54 | void set_nospam(Friend_Requests *fr, uint32_t num); |
55 | uint32_t get_nospam(Friend_Requests *fr); | 55 | uint32_t get_nospam(Friend_Requests *fr); |
@@ -67,7 +67,7 @@ void callback_friendrequest(Friend_Requests *fr, void (*function)(uint8_t *, uin | |||
67 | void set_filter_function(Friend_Requests *fr, int (*function)(uint8_t *, void *), void *userdata); | 67 | void set_filter_function(Friend_Requests *fr, int (*function)(uint8_t *, void *), void *userdata); |
68 | 68 | ||
69 | /* Sets up friendreq packet handlers. */ | 69 | /* Sets up friendreq packet handlers. */ |
70 | void friendreq_init(Friend_Requests *fr, Net_Crypto *c); | 70 | void friendreq_init(Friend_Requests *fr, Onion_Client *onion_c); |
71 | 71 | ||
72 | 72 | ||
73 | #endif | 73 | #endif |