diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-11-05 16:52:41 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-11-06 20:35:09 +0000 |
commit | 82515f92eecde2dffc0659519317d00459a09239 (patch) | |
tree | f17b9afe68fdd475be368623d58c7f51e8cc0ba2 /auto_tests/messenger_test.c | |
parent | fcc8ad943e93308b7048c4e0071ae00b54804934 (diff) |
Move log callback to options.
Previously, all log messages generated by tox_new (which is quite a lot)
were dropped, because client code had no chance to register a logging
callback, yet. This change allows setting the log callback from the
beginning and removes the ability to unset it.
Since the log callback is forever special, since it can't be stateless,
we don't necessarily need to treat it uniformly (with `event`).
Diffstat (limited to 'auto_tests/messenger_test.c')
-rw-r--r-- | auto_tests/messenger_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/auto_tests/messenger_test.c b/auto_tests/messenger_test.c index 5d0be284..eed52a31 100644 --- a/auto_tests/messenger_test.c +++ b/auto_tests/messenger_test.c | |||
@@ -342,7 +342,7 @@ int main(int argc, char *argv[]) | |||
342 | /* IPv6 status from global define */ | 342 | /* IPv6 status from global define */ |
343 | Messenger_Options options = {0}; | 343 | Messenger_Options options = {0}; |
344 | options.ipv6enabled = TOX_ENABLE_IPV6_DEFAULT; | 344 | options.ipv6enabled = TOX_ENABLE_IPV6_DEFAULT; |
345 | m = new_messenger(NULL, &options, 0); | 345 | m = new_messenger(&options, 0); |
346 | 346 | ||
347 | /* setup a default friend and friendnum */ | 347 | /* setup a default friend and friendnum */ |
348 | if (m_addfriend_norequest(m, (uint8_t *)friend_id) < 0) { | 348 | if (m_addfriend_norequest(m, (uint8_t *)friend_id) < 0) { |