summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2015-03-18 16:15:36 -0400
committerirungentoo <irungentoo@gmail.com>2015-03-18 16:15:36 -0400
commit45cf8a744c381b751262295177e636b9fbce7040 (patch)
treed4c610946c5733a0838328826094e7f3b7b07e45 /toxcore
parentdc60d98ff1adba20957543db68706477d4fd1581 (diff)
parent2f65de6fd1a3c83e0754898ab45da006917223ff (diff)
Merge branch 'one_more_rename' of https://github.com/dubslow/toxcore into new_api
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/tox.c4
-rw-r--r--toxcore/tox.h14
2 files changed, 9 insertions, 9 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c
index f547c402..73007c72 100644
--- a/toxcore/tox.c
+++ b/toxcore/tox.c
@@ -319,7 +319,7 @@ bool tox_add_tcp_relay(Tox *tox, const char *address, uint16_t port, const uint8
319 return 1; 319 return 1;
320} 320}
321 321
322TOX_CONNECTION tox_get_connection_status(const Tox *tox) 322TOX_CONNECTION tox_self_get_connection_status(const Tox *tox)
323{ 323{
324 const Messenger *m = tox; 324 const Messenger *m = tox;
325 325
@@ -335,7 +335,7 @@ TOX_CONNECTION tox_get_connection_status(const Tox *tox)
335} 335}
336 336
337 337
338void tox_callback_connection_status(Tox *tox, tox_connection_status_cb *function, void *user_data) 338void tox_callback_self_connection_status(Tox *tox, tox_self_connection_status_cb *function, void *user_data)
339{ 339{
340 Messenger *m = tox; 340 Messenger *m = tox;
341 m_callback_core_connection(m, function, user_data); 341 m_callback_core_connection(m, function, user_data);
diff --git a/toxcore/tox.h b/toxcore/tox.h
index 0df75976..eec41fc7 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -642,20 +642,20 @@ typedef enum TOX_CONNECTION {
642 642
643/** 643/**
644 * Return whether we are connected to the DHT. The return value is equal to the 644 * Return whether we are connected to the DHT. The return value is equal to the
645 * last value received through the `connection_status` callback. 645 * last value received through the `self_connection_status` callback.
646 */ 646 */
647TOX_CONNECTION tox_get_connection_status(const Tox *tox); 647TOX_CONNECTION tox_self_get_connection_status(const Tox *tox);
648 648
649/** 649/**
650 * The function type for the `connection_status` callback. 650 * The function type for the `self_connection_status` callback.
651 * 651 *
652 * @param connection_status Equal to the return value of 652 * @param connection_status Equal to the return value of
653 * tox_get_connection_status. 653 * tox_self_get_connection_status.
654 */ 654 */
655typedef void tox_connection_status_cb(Tox *tox, TOX_CONNECTION connection_status, void *user_data); 655typedef void tox_self_connection_status_cb(Tox *tox, TOX_CONNECTION connection_status, void *user_data);
656 656
657/** 657/**
658 * Set the callback for the `connection_status` event. Pass NULL to unset. 658 * Set the callback for the `self_connection_status` event. Pass NULL to unset.
659 * 659 *
660 * This event is triggered whenever there is a change in the DHT connection 660 * This event is triggered whenever there is a change in the DHT connection
661 * state. When disconnected, a client may choose to call tox_bootstrap again, to 661 * state. When disconnected, a client may choose to call tox_bootstrap again, to
@@ -665,7 +665,7 @@ typedef void tox_connection_status_cb(Tox *tox, TOX_CONNECTION connection_status
665 * 665 *
666 * TODO: how long should a client wait before bootstrapping again? 666 * TODO: how long should a client wait before bootstrapping again?
667 */ 667 */
668void tox_callback_connection_status(Tox *tox, tox_connection_status_cb *function, void *user_data); 668void tox_callback_self_connection_status(Tox *tox, tox_self_connection_status_cb *function, void *user_data);
669 669
670 670
671/** 671/**