diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-09-30 11:39:37 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-09-30 11:39:37 +0100 |
commit | 949ef785a4e7aa7868c9605b6bbed15c3f4beab9 (patch) | |
tree | 24e3ab7b32724f8d17a225463dfefc840b736b5c /toxcore/tox.c | |
parent | 48ddb115995f2bb55a736ae4cc54c70f3d34eeb4 (diff) |
Add the 'Tox' context object to the logger.
We don't currently support callbacks without context object.
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r-- | toxcore/tox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c index df2fde53..fccf3480 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -311,7 +311,7 @@ void tox_kill(Tox *tox) | |||
311 | void tox_callback_log(Tox *tox, tox_log_cb *callback, void *user_data) | 311 | void tox_callback_log(Tox *tox, tox_log_cb *callback, void *user_data) |
312 | { | 312 | { |
313 | Messenger *m = tox; | 313 | Messenger *m = tox; |
314 | m_callback_log(m, (logger_cb *)callback, user_data); | 314 | m_callback_log(m, (logger_cb *)callback, tox, user_data); |
315 | } | 315 | } |
316 | 316 | ||
317 | size_t tox_get_savedata_size(const Tox *tox) | 317 | size_t tox_get_savedata_size(const Tox *tox) |