diff options
Diffstat (limited to 'toxcore/onion_client.h')
-rw-r--r-- | toxcore/onion_client.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/onion_client.h b/toxcore/onion_client.h index ec8de383..daf08a74 100644 --- a/toxcore/onion_client.h +++ b/toxcore/onion_client.h | |||
@@ -115,7 +115,7 @@ typedef struct { | |||
115 | } Onion_Friend; | 115 | } Onion_Friend; |
116 | 116 | ||
117 | typedef int (*oniondata_handler_callback)(void *object, const uint8_t *source_pubkey, const uint8_t *data, | 117 | typedef int (*oniondata_handler_callback)(void *object, const uint8_t *source_pubkey, const uint8_t *data, |
118 | uint32_t len); | 118 | uint16_t len); |
119 | 119 | ||
120 | typedef struct { | 120 | typedef struct { |
121 | DHT *dht; | 121 | DHT *dht; |
@@ -255,7 +255,7 @@ unsigned int onion_getfriend_DHT_pubkey(const Onion_Client *onion_c, int friend_ | |||
255 | * return the number of packets sent on success | 255 | * return the number of packets sent on success |
256 | * return -1 on failure. | 256 | * return -1 on failure. |
257 | */ | 257 | */ |
258 | int send_onion_data(const Onion_Client *onion_c, int friend_num, const uint8_t *data, uint32_t length); | 258 | int send_onion_data(const Onion_Client *onion_c, int friend_num, const uint8_t *data, uint16_t length); |
259 | 259 | ||
260 | /* Function to call when onion data packet with contents beginning with byte is received. */ | 260 | /* Function to call when onion data packet with contents beginning with byte is received. */ |
261 | void oniondata_registerhandler(Onion_Client *onion_c, uint8_t byte, oniondata_handler_callback cb, void *object); | 261 | void oniondata_registerhandler(Onion_Client *onion_c, uint8_t byte, oniondata_handler_callback cb, void *object); |