Hook into Tox logs if built without NDEBUG

This also requires libtoxcore to be built with logging enabled.
This commit is contained in:
Håvard Pettersson 2017-02-09 22:04:39 -08:00
parent 4c8c4f598d
commit bf095ecc5b
3 changed files with 51 additions and 0 deletions

View file

@ -78,5 +78,13 @@ twc_group_title_callback(Tox *tox,
const uint8_t *title, size_t length,
void *data);
#ifndef NDEBUG
void
twc_tox_log_callback(Tox *tox,
TOX_LOG_LEVEL level,
const char *file, uint32_t line, const char *func,
const char *message, void *user_data);
#endif /* !NDEBUG */
#endif // TOX_WEECHAT_TOX_CALLBACKS_H