summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-07-25 06:54:04 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-08-04 09:29:15 +0000
commit064ffe58756f1adbd1917689ea79db95756d535e (patch)
tree23441f9ff49793ed40059941c022236b92c77140 /toxcore/Messenger.c
parent7f8b29c3465bae5b34999ad417508c2d0f6e6946 (diff)
Make a separate `struct Tox` containing the Messenger.
This allows Tox to contain additional data on top of Messenger, making Messenger not necessarily the most top-level object. E.g. groups are built on Messenger and currently awkwardly void-pointered into it to pretend there is no cyclic dependency.
Diffstat (limited to 'toxcore/Messenger.c')
-rw-r--r--toxcore/Messenger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c
index cfa76172..7ff2c2b3 100644
--- a/toxcore/Messenger.c
+++ b/toxcore/Messenger.c
@@ -1985,7 +1985,7 @@ Messenger *new_messenger(Messenger_Options *options, unsigned int *error)
1985 return nullptr; 1985 return nullptr;
1986 } 1986 }
1987 1987
1988 logger_callback_log(m->log, options->log_callback, m, options->log_user_data); 1988 logger_callback_log(m->log, options->log_callback, options->log_context, options->log_user_data);
1989 1989
1990 unsigned int net_err = 0; 1990 unsigned int net_err = 0;
1991 1991