diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-09-27 14:22:48 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-09-27 14:22:48 +0100 |
commit | 95b8365af690595d9d1b8d9aa9f6ed56c710e13e (patch) | |
tree | a1309d377ef9163e1baafe9f169d2b09a7d76a8d /toxcore/friend_connection.h | |
parent | 621c3fddb289de948c3cf48c5e1625e0f5b11a9d (diff) |
Remove redundant callback objects.
These three objects and their callback IDs are always the same.
Diffstat (limited to 'toxcore/friend_connection.h')
-rw-r--r-- | toxcore/friend_connection.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/toxcore/friend_connection.h b/toxcore/friend_connection.h index 4bc5250a..b968c57d 100644 --- a/toxcore/friend_connection.h +++ b/toxcore/friend_connection.h | |||
@@ -79,16 +79,11 @@ typedef struct { | |||
79 | 79 | ||
80 | struct { | 80 | struct { |
81 | int (*status_callback)(void *object, int id, uint8_t status, void *userdata); | 81 | int (*status_callback)(void *object, int id, uint8_t status, void *userdata); |
82 | void *status_callback_object; | ||
83 | int status_callback_id; | ||
84 | |||
85 | int (*data_callback)(void *object, int id, const uint8_t *data, uint16_t length, void *userdata); | 82 | int (*data_callback)(void *object, int id, const uint8_t *data, uint16_t length, void *userdata); |
86 | void *data_callback_object; | ||
87 | int data_callback_id; | ||
88 | |||
89 | int (*lossy_data_callback)(void *object, int id, const uint8_t *data, uint16_t length, void *userdata); | 83 | int (*lossy_data_callback)(void *object, int id, const uint8_t *data, uint16_t length, void *userdata); |
90 | void *lossy_data_callback_object; | 84 | |
91 | int lossy_data_callback_id; | 85 | void *callback_object; |
86 | int callback_id; | ||
92 | } callbacks[MAX_FRIEND_CONNECTION_CALLBACKS]; | 87 | } callbacks[MAX_FRIEND_CONNECTION_CALLBACKS]; |
93 | 88 | ||
94 | uint16_t lock_count; | 89 | uint16_t lock_count; |