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 /testing/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 'testing/Messenger_test.c')
-rw-r--r-- | testing/Messenger_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/Messenger_test.c b/testing/Messenger_test.c index 9f56c903..4fd81649 100644 --- a/testing/Messenger_test.c +++ b/testing/Messenger_test.c | |||
@@ -115,7 +115,7 @@ int main(int argc, char *argv[]) | |||
115 | 115 | ||
116 | Messenger_Options options = {0}; | 116 | Messenger_Options options = {0}; |
117 | options.ipv6enabled = ipv6enabled; | 117 | options.ipv6enabled = ipv6enabled; |
118 | m = new_messenger(NULL, &options, 0); | 118 | m = new_messenger(&options, 0); |
119 | 119 | ||
120 | if (!m) { | 120 | if (!m) { |
121 | fputs("Failed to allocate messenger datastructure\n", stderr); | 121 | fputs("Failed to allocate messenger datastructure\n", stderr); |