diff options
author | Marc Schütz <schuetzm@gmx.net> | 2014-06-30 21:46:34 +0200 |
---|---|---|
committer | Marc Schütz <schuetzm@gmx.net> | 2014-06-30 21:46:34 +0200 |
commit | 000692fca0990bb49d4961c8fbe3e9c582a38248 (patch) | |
tree | 9400b25a1639fe74971cecbd425962ffe767a546 /toxcore/TCP_client.h | |
parent | 9762089badd10189c59fddce1e0f95c4adc084aa (diff) |
Const-correctness for TCP_client.c
Diffstat (limited to 'toxcore/TCP_client.h')
-rw-r--r-- | toxcore/TCP_client.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/TCP_client.h b/toxcore/TCP_client.h index 82487ab4..2622b4f7 100644 --- a/toxcore/TCP_client.h +++ b/toxcore/TCP_client.h | |||
@@ -73,7 +73,7 @@ typedef struct { | |||
73 | int (*oob_data_callback)(void *object, const uint8_t *public_key, const uint8_t *data, uint16_t length); | 73 | int (*oob_data_callback)(void *object, const uint8_t *public_key, const uint8_t *data, uint16_t length); |
74 | void *oob_data_callback_object; | 74 | void *oob_data_callback_object; |
75 | 75 | ||
76 | int (*onion_callback)(void *object, uint8_t *data, uint16_t length); | 76 | int (*onion_callback)(void *object, const uint8_t *data, uint16_t length); |
77 | void *onion_callback_object; | 77 | void *onion_callback_object; |
78 | } TCP_Client_Connection; | 78 | } TCP_Client_Connection; |
79 | 79 | ||
@@ -94,8 +94,8 @@ void kill_TCP_connection(TCP_Client_Connection *TCP_connection); | |||
94 | * return 0 if could not send packet. | 94 | * return 0 if could not send packet. |
95 | * return -1 on failure (connection must be killed). | 95 | * return -1 on failure (connection must be killed). |
96 | */ | 96 | */ |
97 | int send_onion_request(TCP_Client_Connection *con, uint8_t *data, uint16_t length); | 97 | int send_onion_request(TCP_Client_Connection *con, const uint8_t *data, uint16_t length); |
98 | void onion_response_handler(TCP_Client_Connection *con, int (*onion_callback)(void *object, uint8_t *data, | 98 | void onion_response_handler(TCP_Client_Connection *con, int (*onion_callback)(void *object, const uint8_t *data, |
99 | uint16_t length), void *object); | 99 | uint16_t length), void *object); |
100 | 100 | ||
101 | /* return 1 on success. | 101 | /* return 1 on success. |