diff options
author | irungentoo <irungentoo@gmail.com> | 2014-11-21 20:18:29 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-11-21 20:18:29 -0500 |
commit | 6bbb9398558d226711450feea45417bcf3eafe70 (patch) | |
tree | ed946e3fa14ccc4aec0dbdddc481dcd1e2de3e69 /toxcore/friend_connection.h | |
parent | e74225039e08e7be6e60cf7e2f5e279eb0559ce7 (diff) |
Cleaned up packet length types in toxcore.
They are now all uint16_t instead of sometimes being uint32_t.
Replaced some other uint32_t with unsigned ints.
Diffstat (limited to 'toxcore/friend_connection.h')
-rw-r--r-- | toxcore/friend_connection.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/friend_connection.h b/toxcore/friend_connection.h index ef56fd94..b814eb0c 100644 --- a/toxcore/friend_connection.h +++ b/toxcore/friend_connection.h | |||
@@ -94,7 +94,7 @@ typedef struct { | |||
94 | Friend_Conn *conns; | 94 | Friend_Conn *conns; |
95 | uint32_t num_cons; | 95 | uint32_t num_cons; |
96 | 96 | ||
97 | int (*fr_request_callback)(void *object, const uint8_t *source_pubkey, const uint8_t *data, uint32_t len); | 97 | int (*fr_request_callback)(void *object, const uint8_t *source_pubkey, const uint8_t *data, uint16_t len); |
98 | void *fr_request_object; | 98 | void *fr_request_object; |
99 | } Friend_Connections; | 99 | } Friend_Connections; |
100 | 100 | ||
@@ -174,7 +174,7 @@ int send_friend_request_packet(Friend_Connections *fr_c, int friendcon_id, uint3 | |||
174 | * This function will be called every time a friend request is received. | 174 | * This function will be called every time a friend request is received. |
175 | */ | 175 | */ |
176 | void set_friend_request_callback(Friend_Connections *fr_c, int (*fr_request_callback)(void *, const uint8_t *, | 176 | void set_friend_request_callback(Friend_Connections *fr_c, int (*fr_request_callback)(void *, const uint8_t *, |
177 | const uint8_t *, uint32_t), void *object); | 177 | const uint8_t *, uint16_t), void *object); |
178 | 178 | ||
179 | /* Create new friend_connections instance. */ | 179 | /* Create new friend_connections instance. */ |
180 | Friend_Connections *new_friend_connections(Onion_Client *onion_c); | 180 | Friend_Connections *new_friend_connections(Onion_Client *onion_c); |