diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-09-01 00:38:58 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-09-01 14:54:17 +0100 |
commit | 45d1f9acb9dbec6ea84a81b2cc0b7df276ee15a9 (patch) | |
tree | 01410fdcdb33837d671bdc199783140a77aed655 /toxcore/tox.c | |
parent | 576f13061595dae46af025b4fce1a9b4ef95d37f (diff) |
Match parameter names in declarations with their definitions.
The parameter names were taken from function definitions to update the names in
function declarations (prototypes).
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r-- | toxcore/tox.c | 141 |
1 files changed, 71 insertions, 70 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c index 960fb618..94cb7261 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -114,35 +114,36 @@ CONST_FUNCTION(file_id_length, FILE_ID_LENGTH) | |||
114 | CONST_FUNCTION(max_filename_length, MAX_FILENAME_LENGTH) | 114 | CONST_FUNCTION(max_filename_length, MAX_FILENAME_LENGTH) |
115 | 115 | ||
116 | 116 | ||
117 | #define ACCESSORS(type, name) \ | 117 | #define ACCESSORS(type, ns, name) \ |
118 | type tox_options_get_##name(const struct Tox_Options *options) \ | 118 | type tox_options_get_##ns##name(const struct Tox_Options *options) \ |
119 | { \ | 119 | { \ |
120 | return options->name; \ | 120 | return options->ns##name; \ |
121 | } \ | 121 | } \ |
122 | void tox_options_set_##name(struct Tox_Options *options, type name) \ | 122 | void tox_options_set_##ns##name(struct Tox_Options *options, type name) \ |
123 | { \ | 123 | { \ |
124 | options->name = name; \ | 124 | options->ns##name = name; \ |
125 | } | 125 | } |
126 | 126 | ||
127 | ACCESSORS(bool, ipv6_enabled) | 127 | ACCESSORS(bool, , ipv6_enabled) |
128 | ACCESSORS(bool, udp_enabled) | 128 | ACCESSORS(bool, , udp_enabled) |
129 | ACCESSORS(TOX_PROXY_TYPE, proxy_type) | 129 | ACCESSORS(TOX_PROXY_TYPE, proxy_ , type) |
130 | ACCESSORS(const char *, proxy_host) | 130 | ACCESSORS(const char *, proxy_ , host) |
131 | ACCESSORS(uint16_t, proxy_port) | 131 | ACCESSORS(uint16_t, proxy_ , port) |
132 | ACCESSORS(uint16_t, start_port) | 132 | ACCESSORS(uint16_t, , start_port) |
133 | ACCESSORS(uint16_t, end_port) | 133 | ACCESSORS(uint16_t, , end_port) |
134 | ACCESSORS(uint16_t, tcp_port) | 134 | ACCESSORS(uint16_t, , tcp_port) |
135 | ACCESSORS(TOX_SAVEDATA_TYPE, savedata_type) | 135 | ACCESSORS(TOX_SAVEDATA_TYPE, savedata_, type) |
136 | ACCESSORS(size_t, savedata_length) | 136 | ACCESSORS(size_t, savedata_, length) |
137 | 137 | ||
138 | const uint8_t *tox_options_get_savedata_data(const struct Tox_Options *options) | 138 | const uint8_t *tox_options_get_savedata_data(const struct Tox_Options *options) |
139 | { | 139 | { |
140 | return options->savedata_data; | 140 | return options->savedata_data; |
141 | } | 141 | } |
142 | 142 | ||
143 | void tox_options_set_savedata_data(struct Tox_Options *options, const uint8_t *savedata_data, size_t length) | 143 | void tox_options_set_savedata_data(struct Tox_Options *options, const uint8_t *data, size_t length) |
144 | { | 144 | { |
145 | options->savedata_data = savedata_data; | 145 | options->savedata_data = data; |
146 | options->savedata_length = length; | ||
146 | } | 147 | } |
147 | 148 | ||
148 | 149 | ||
@@ -307,10 +308,10 @@ void tox_kill(Tox *tox) | |||
307 | logger_kill(log); | 308 | logger_kill(log); |
308 | } | 309 | } |
309 | 310 | ||
310 | void tox_callback_log(Tox *tox, tox_log_cb *function, void *userdata) | 311 | void tox_callback_log(Tox *tox, tox_log_cb *callback, void *user_data) |
311 | { | 312 | { |
312 | Messenger *m = tox; | 313 | Messenger *m = tox; |
313 | m_callback_log(m, (logger_cb *)function, userdata); | 314 | m_callback_log(m, (logger_cb *)callback, user_data); |
314 | } | 315 | } |
315 | 316 | ||
316 | size_t tox_get_savedata_size(const Tox *tox) | 317 | size_t tox_get_savedata_size(const Tox *tox) |
@@ -319,11 +320,11 @@ size_t tox_get_savedata_size(const Tox *tox) | |||
319 | return messenger_size(m); | 320 | return messenger_size(m); |
320 | } | 321 | } |
321 | 322 | ||
322 | void tox_get_savedata(const Tox *tox, uint8_t *data) | 323 | void tox_get_savedata(const Tox *tox, uint8_t *savedata) |
323 | { | 324 | { |
324 | if (data) { | 325 | if (savedata) { |
325 | const Messenger *m = tox; | 326 | const Messenger *m = tox; |
326 | messenger_save(m, data); | 327 | messenger_save(m, savedata); |
327 | } | 328 | } |
328 | } | 329 | } |
329 | 330 | ||
@@ -457,10 +458,10 @@ TOX_CONNECTION tox_self_get_connection_status(const Tox *tox) | |||
457 | } | 458 | } |
458 | 459 | ||
459 | 460 | ||
460 | void tox_callback_self_connection_status(Tox *tox, tox_self_connection_status_cb *function) | 461 | void tox_callback_self_connection_status(Tox *tox, tox_self_connection_status_cb *callback) |
461 | { | 462 | { |
462 | Messenger *m = tox; | 463 | Messenger *m = tox; |
463 | m_callback_core_connection(m, function); | 464 | m_callback_core_connection(m, callback); |
464 | } | 465 | } |
465 | 466 | ||
466 | uint32_t tox_iteration_interval(const Tox *tox) | 467 | uint32_t tox_iteration_interval(const Tox *tox) |
@@ -469,10 +470,10 @@ uint32_t tox_iteration_interval(const Tox *tox) | |||
469 | return messenger_run_interval(m); | 470 | return messenger_run_interval(m); |
470 | } | 471 | } |
471 | 472 | ||
472 | void tox_iterate(Tox *tox, void *userdata) | 473 | void tox_iterate(Tox *tox, void *user_data) |
473 | { | 474 | { |
474 | Messenger *m = tox; | 475 | Messenger *m = tox; |
475 | do_messenger(m, userdata); | 476 | do_messenger(m, user_data); |
476 | do_groupchats(m->group_chat_object); | 477 | do_groupchats(m->group_chat_object); |
477 | } | 478 | } |
478 | 479 | ||
@@ -548,16 +549,16 @@ void tox_self_get_name(const Tox *tox, uint8_t *name) | |||
548 | } | 549 | } |
549 | } | 550 | } |
550 | 551 | ||
551 | bool tox_self_set_status_message(Tox *tox, const uint8_t *status, size_t length, TOX_ERR_SET_INFO *error) | 552 | bool tox_self_set_status_message(Tox *tox, const uint8_t *status_message, size_t length, TOX_ERR_SET_INFO *error) |
552 | { | 553 | { |
553 | if (!status && length != 0) { | 554 | if (!status_message && length != 0) { |
554 | SET_ERROR_PARAMETER(error, TOX_ERR_SET_INFO_NULL); | 555 | SET_ERROR_PARAMETER(error, TOX_ERR_SET_INFO_NULL); |
555 | return 0; | 556 | return 0; |
556 | } | 557 | } |
557 | 558 | ||
558 | Messenger *m = tox; | 559 | Messenger *m = tox; |
559 | 560 | ||
560 | if (m_set_statusmessage(m, status, length) == 0) { | 561 | if (m_set_statusmessage(m, status_message, length) == 0) { |
561 | SET_ERROR_PARAMETER(error, TOX_ERR_SET_INFO_OK); | 562 | SET_ERROR_PARAMETER(error, TOX_ERR_SET_INFO_OK); |
562 | return 1; | 563 | return 1; |
563 | } else { | 564 | } else { |
@@ -572,18 +573,18 @@ size_t tox_self_get_status_message_size(const Tox *tox) | |||
572 | return m_get_self_statusmessage_size(m); | 573 | return m_get_self_statusmessage_size(m); |
573 | } | 574 | } |
574 | 575 | ||
575 | void tox_self_get_status_message(const Tox *tox, uint8_t *status) | 576 | void tox_self_get_status_message(const Tox *tox, uint8_t *status_message) |
576 | { | 577 | { |
577 | if (status) { | 578 | if (status_message) { |
578 | const Messenger *m = tox; | 579 | const Messenger *m = tox; |
579 | m_copy_self_statusmessage(m, status); | 580 | m_copy_self_statusmessage(m, status_message); |
580 | } | 581 | } |
581 | } | 582 | } |
582 | 583 | ||
583 | void tox_self_set_status(Tox *tox, TOX_USER_STATUS user_status) | 584 | void tox_self_set_status(Tox *tox, TOX_USER_STATUS status) |
584 | { | 585 | { |
585 | Messenger *m = tox; | 586 | Messenger *m = tox; |
586 | m_set_userstatus(m, user_status); | 587 | m_set_userstatus(m, status); |
587 | } | 588 | } |
588 | 589 | ||
589 | TOX_USER_STATUS tox_self_get_status(const Tox *tox) | 590 | TOX_USER_STATUS tox_self_get_status(const Tox *tox) |
@@ -743,12 +744,12 @@ size_t tox_self_get_friend_list_size(const Tox *tox) | |||
743 | return count_friendlist(m); | 744 | return count_friendlist(m); |
744 | } | 745 | } |
745 | 746 | ||
746 | void tox_self_get_friend_list(const Tox *tox, uint32_t *list) | 747 | void tox_self_get_friend_list(const Tox *tox, uint32_t *friend_list) |
747 | { | 748 | { |
748 | if (list) { | 749 | if (friend_list) { |
749 | const Messenger *m = tox; | 750 | const Messenger *m = tox; |
750 | //TODO: size parameter? | 751 | //TODO: size parameter? |
751 | copy_friendlist(m, list, tox_self_get_friend_list_size(tox)); | 752 | copy_friendlist(m, friend_list, tox_self_get_friend_list_size(tox)); |
752 | } | 753 | } |
753 | } | 754 | } |
754 | 755 | ||
@@ -785,10 +786,10 @@ bool tox_friend_get_name(const Tox *tox, uint32_t friend_number, uint8_t *name, | |||
785 | return 1; | 786 | return 1; |
786 | } | 787 | } |
787 | 788 | ||
788 | void tox_callback_friend_name(Tox *tox, tox_friend_name_cb *function) | 789 | void tox_callback_friend_name(Tox *tox, tox_friend_name_cb *callback) |
789 | { | 790 | { |
790 | Messenger *m = tox; | 791 | Messenger *m = tox; |
791 | m_callback_namechange(m, function); | 792 | m_callback_namechange(m, callback); |
792 | } | 793 | } |
793 | 794 | ||
794 | size_t tox_friend_get_status_message_size(const Tox *tox, uint32_t friend_number, TOX_ERR_FRIEND_QUERY *error) | 795 | size_t tox_friend_get_status_message_size(const Tox *tox, uint32_t friend_number, TOX_ERR_FRIEND_QUERY *error) |
@@ -805,17 +806,17 @@ size_t tox_friend_get_status_message_size(const Tox *tox, uint32_t friend_number | |||
805 | return ret; | 806 | return ret; |
806 | } | 807 | } |
807 | 808 | ||
808 | bool tox_friend_get_status_message(const Tox *tox, uint32_t friend_number, uint8_t *message, | 809 | bool tox_friend_get_status_message(const Tox *tox, uint32_t friend_number, uint8_t *status_message, |
809 | TOX_ERR_FRIEND_QUERY *error) | 810 | TOX_ERR_FRIEND_QUERY *error) |
810 | { | 811 | { |
811 | if (!message) { | 812 | if (!status_message) { |
812 | SET_ERROR_PARAMETER(error, TOX_ERR_FRIEND_QUERY_NULL); | 813 | SET_ERROR_PARAMETER(error, TOX_ERR_FRIEND_QUERY_NULL); |
813 | return 0; | 814 | return 0; |
814 | } | 815 | } |
815 | 816 | ||
816 | const Messenger *m = tox; | 817 | const Messenger *m = tox; |
817 | //TODO: size parameter? | 818 | //TODO: size parameter? |
818 | int ret = m_copy_statusmessage(m, friend_number, message, m_get_statusmessage_size(m, friend_number)); | 819 | int ret = m_copy_statusmessage(m, friend_number, status_message, m_get_statusmessage_size(m, friend_number)); |
819 | 820 | ||
820 | if (ret == -1) { | 821 | if (ret == -1) { |
821 | SET_ERROR_PARAMETER(error, TOX_ERR_FRIEND_QUERY_FRIEND_NOT_FOUND); | 822 | SET_ERROR_PARAMETER(error, TOX_ERR_FRIEND_QUERY_FRIEND_NOT_FOUND); |
@@ -826,10 +827,10 @@ bool tox_friend_get_status_message(const Tox *tox, uint32_t friend_number, uint8 | |||
826 | return 1; | 827 | return 1; |
827 | } | 828 | } |
828 | 829 | ||
829 | void tox_callback_friend_status_message(Tox *tox, tox_friend_status_message_cb *function) | 830 | void tox_callback_friend_status_message(Tox *tox, tox_friend_status_message_cb *callback) |
830 | { | 831 | { |
831 | Messenger *m = tox; | 832 | Messenger *m = tox; |
832 | m_callback_statusmessage(m, function); | 833 | m_callback_statusmessage(m, callback); |
833 | } | 834 | } |
834 | 835 | ||
835 | TOX_USER_STATUS tox_friend_get_status(const Tox *tox, uint32_t friend_number, TOX_ERR_FRIEND_QUERY *error) | 836 | TOX_USER_STATUS tox_friend_get_status(const Tox *tox, uint32_t friend_number, TOX_ERR_FRIEND_QUERY *error) |
@@ -847,10 +848,10 @@ TOX_USER_STATUS tox_friend_get_status(const Tox *tox, uint32_t friend_number, TO | |||
847 | return ret; | 848 | return ret; |
848 | } | 849 | } |
849 | 850 | ||
850 | void tox_callback_friend_status(Tox *tox, tox_friend_status_cb *function) | 851 | void tox_callback_friend_status(Tox *tox, tox_friend_status_cb *callback) |
851 | { | 852 | { |
852 | Messenger *m = tox; | 853 | Messenger *m = tox; |
853 | m_callback_userstatus(m, function); | 854 | m_callback_userstatus(m, callback); |
854 | } | 855 | } |
855 | 856 | ||
856 | TOX_CONNECTION tox_friend_get_connection_status(const Tox *tox, uint32_t friend_number, TOX_ERR_FRIEND_QUERY *error) | 857 | TOX_CONNECTION tox_friend_get_connection_status(const Tox *tox, uint32_t friend_number, TOX_ERR_FRIEND_QUERY *error) |
@@ -868,10 +869,10 @@ TOX_CONNECTION tox_friend_get_connection_status(const Tox *tox, uint32_t friend_ | |||
868 | return ret; | 869 | return ret; |
869 | } | 870 | } |
870 | 871 | ||
871 | void tox_callback_friend_connection_status(Tox *tox, tox_friend_connection_status_cb *function, void *user_data) | 872 | void tox_callback_friend_connection_status(Tox *tox, tox_friend_connection_status_cb *callback, void *user_data) |
872 | { | 873 | { |
873 | Messenger *m = tox; | 874 | Messenger *m = tox; |
874 | m_callback_connectionstatus(m, function, user_data); | 875 | m_callback_connectionstatus(m, callback, user_data); |
875 | } | 876 | } |
876 | 877 | ||
877 | bool tox_friend_get_typing(const Tox *tox, uint32_t friend_number, TOX_ERR_FRIEND_QUERY *error) | 878 | bool tox_friend_get_typing(const Tox *tox, uint32_t friend_number, TOX_ERR_FRIEND_QUERY *error) |
@@ -888,17 +889,17 @@ bool tox_friend_get_typing(const Tox *tox, uint32_t friend_number, TOX_ERR_FRIEN | |||
888 | return !!ret; | 889 | return !!ret; |
889 | } | 890 | } |
890 | 891 | ||
891 | void tox_callback_friend_typing(Tox *tox, tox_friend_typing_cb *function) | 892 | void tox_callback_friend_typing(Tox *tox, tox_friend_typing_cb *callback) |
892 | { | 893 | { |
893 | Messenger *m = tox; | 894 | Messenger *m = tox; |
894 | m_callback_typingchange(m, function); | 895 | m_callback_typingchange(m, callback); |
895 | } | 896 | } |
896 | 897 | ||
897 | bool tox_self_set_typing(Tox *tox, uint32_t friend_number, bool is_typing, TOX_ERR_SET_TYPING *error) | 898 | bool tox_self_set_typing(Tox *tox, uint32_t friend_number, bool typing, TOX_ERR_SET_TYPING *error) |
898 | { | 899 | { |
899 | Messenger *m = tox; | 900 | Messenger *m = tox; |
900 | 901 | ||
901 | if (m_set_usertyping(m, friend_number, is_typing) == -1) { | 902 | if (m_set_usertyping(m, friend_number, typing) == -1) { |
902 | SET_ERROR_PARAMETER(error, TOX_ERR_SET_TYPING_FRIEND_NOT_FOUND); | 903 | SET_ERROR_PARAMETER(error, TOX_ERR_SET_TYPING_FRIEND_NOT_FOUND); |
903 | return 0; | 904 | return 0; |
904 | } | 905 | } |
@@ -955,22 +956,22 @@ uint32_t tox_friend_send_message(Tox *tox, uint32_t friend_number, TOX_MESSAGE_T | |||
955 | return message_id; | 956 | return message_id; |
956 | } | 957 | } |
957 | 958 | ||
958 | void tox_callback_friend_read_receipt(Tox *tox, tox_friend_read_receipt_cb *function) | 959 | void tox_callback_friend_read_receipt(Tox *tox, tox_friend_read_receipt_cb *callback) |
959 | { | 960 | { |
960 | Messenger *m = tox; | 961 | Messenger *m = tox; |
961 | m_callback_read_receipt(m, function); | 962 | m_callback_read_receipt(m, callback); |
962 | } | 963 | } |
963 | 964 | ||
964 | void tox_callback_friend_request(Tox *tox, tox_friend_request_cb *function, void *user_data) | 965 | void tox_callback_friend_request(Tox *tox, tox_friend_request_cb *callback, void *user_data) |
965 | { | 966 | { |
966 | Messenger *m = tox; | 967 | Messenger *m = tox; |
967 | m_callback_friendrequest(m, function, user_data); | 968 | m_callback_friendrequest(m, callback, user_data); |
968 | } | 969 | } |
969 | 970 | ||
970 | void tox_callback_friend_message(Tox *tox, tox_friend_message_cb *function) | 971 | void tox_callback_friend_message(Tox *tox, tox_friend_message_cb *callback) |
971 | { | 972 | { |
972 | Messenger *m = tox; | 973 | Messenger *m = tox; |
973 | m_callback_friendmessage(m, function); | 974 | m_callback_friendmessage(m, callback); |
974 | } | 975 | } |
975 | 976 | ||
976 | bool tox_hash(uint8_t *hash, const uint8_t *data, size_t length) | 977 | bool tox_hash(uint8_t *hash, const uint8_t *data, size_t length) |
@@ -1074,10 +1075,10 @@ bool tox_file_seek(Tox *tox, uint32_t friend_number, uint32_t file_number, uint6 | |||
1074 | return 0; | 1075 | return 0; |
1075 | } | 1076 | } |
1076 | 1077 | ||
1077 | void tox_callback_file_recv_control(Tox *tox, tox_file_recv_control_cb *function, void *user_data) | 1078 | void tox_callback_file_recv_control(Tox *tox, tox_file_recv_control_cb *callback, void *user_data) |
1078 | { | 1079 | { |
1079 | Messenger *m = tox; | 1080 | Messenger *m = tox; |
1080 | callback_file_control(m, function, user_data); | 1081 | callback_file_control(m, callback, user_data); |
1081 | } | 1082 | } |
1082 | 1083 | ||
1083 | bool tox_file_get_file_id(const Tox *tox, uint32_t friend_number, uint32_t file_number, uint8_t *file_id, | 1084 | bool tox_file_get_file_id(const Tox *tox, uint32_t friend_number, uint32_t file_number, uint8_t *file_id, |
@@ -1194,22 +1195,22 @@ bool tox_file_send_chunk(Tox *tox, uint32_t friend_number, uint32_t file_number, | |||
1194 | return 0; | 1195 | return 0; |
1195 | } | 1196 | } |
1196 | 1197 | ||
1197 | void tox_callback_file_chunk_request(Tox *tox, tox_file_chunk_request_cb *function, void *user_data) | 1198 | void tox_callback_file_chunk_request(Tox *tox, tox_file_chunk_request_cb *callback, void *user_data) |
1198 | { | 1199 | { |
1199 | Messenger *m = tox; | 1200 | Messenger *m = tox; |
1200 | callback_file_reqchunk(m, function, user_data); | 1201 | callback_file_reqchunk(m, callback, user_data); |
1201 | } | 1202 | } |
1202 | 1203 | ||
1203 | void tox_callback_file_recv(Tox *tox, tox_file_recv_cb *function, void *user_data) | 1204 | void tox_callback_file_recv(Tox *tox, tox_file_recv_cb *callback, void *user_data) |
1204 | { | 1205 | { |
1205 | Messenger *m = tox; | 1206 | Messenger *m = tox; |
1206 | callback_file_sendrequest(m, function, user_data); | 1207 | callback_file_sendrequest(m, callback, user_data); |
1207 | } | 1208 | } |
1208 | 1209 | ||
1209 | void tox_callback_file_recv_chunk(Tox *tox, tox_file_recv_chunk_cb *function, void *user_data) | 1210 | void tox_callback_file_recv_chunk(Tox *tox, tox_file_recv_chunk_cb *callback, void *user_data) |
1210 | { | 1211 | { |
1211 | Messenger *m = tox; | 1212 | Messenger *m = tox; |
1212 | callback_file_data(m, function, user_data); | 1213 | callback_file_data(m, callback, user_data); |
1213 | } | 1214 | } |
1214 | 1215 | ||
1215 | static void set_custom_packet_error(int ret, TOX_ERR_FRIEND_CUSTOM_PACKET *error) | 1216 | static void set_custom_packet_error(int ret, TOX_ERR_FRIEND_CUSTOM_PACKET *error) |
@@ -1272,10 +1273,10 @@ bool tox_friend_send_lossy_packet(Tox *tox, uint32_t friend_number, const uint8_ | |||
1272 | } | 1273 | } |
1273 | } | 1274 | } |
1274 | 1275 | ||
1275 | void tox_callback_friend_lossy_packet(Tox *tox, tox_friend_lossy_packet_cb *function, void *user_data) | 1276 | void tox_callback_friend_lossy_packet(Tox *tox, tox_friend_lossy_packet_cb *callback, void *user_data) |
1276 | { | 1277 | { |
1277 | Messenger *m = tox; | 1278 | Messenger *m = tox; |
1278 | custom_lossy_packet_registerhandler(m, function, user_data); | 1279 | custom_lossy_packet_registerhandler(m, callback, user_data); |
1279 | } | 1280 | } |
1280 | 1281 | ||
1281 | bool tox_friend_send_lossless_packet(Tox *tox, uint32_t friend_number, const uint8_t *data, size_t length, | 1282 | bool tox_friend_send_lossless_packet(Tox *tox, uint32_t friend_number, const uint8_t *data, size_t length, |
@@ -1304,10 +1305,10 @@ bool tox_friend_send_lossless_packet(Tox *tox, uint32_t friend_number, const uin | |||
1304 | } | 1305 | } |
1305 | } | 1306 | } |
1306 | 1307 | ||
1307 | void tox_callback_friend_lossless_packet(Tox *tox, tox_friend_lossless_packet_cb *function, void *user_data) | 1308 | void tox_callback_friend_lossless_packet(Tox *tox, tox_friend_lossless_packet_cb *callback, void *user_data) |
1308 | { | 1309 | { |
1309 | Messenger *m = tox; | 1310 | Messenger *m = tox; |
1310 | custom_lossless_packet_registerhandler(m, function, user_data); | 1311 | custom_lossless_packet_registerhandler(m, callback, user_data); |
1311 | } | 1312 | } |
1312 | 1313 | ||
1313 | void tox_self_get_dht_id(const Tox *tox, uint8_t *dht_id) | 1314 | void tox_self_get_dht_id(const Tox *tox, uint8_t *dht_id) |