summaryrefslogtreecommitdiff
path: root/src/rexmpp.h
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2021-02-12 20:11:20 +0300
committerdefanor <defanor@uberspace.net>2021-02-12 20:11:20 +0300
commitd0d568f9bc39f9e35b6d39ecf21b5e425ea91c85 (patch)
tree1cb5e728bb80005707244038f2eacbdce01dbbf6 /src/rexmpp.h
parent3b5806a16e4fd0a6f292050508790fc0c3f6b36f (diff)
Set log_function on initialisation
rexmpp_init may write logs itself, so a logging function should be set for that.
Diffstat (limited to 'src/rexmpp.h')
-rw-r--r--src/rexmpp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rexmpp.h b/src/rexmpp.h
index 2f21fce..93740d8 100644
--- a/src/rexmpp.h
+++ b/src/rexmpp.h
@@ -357,7 +357,9 @@ struct rexmpp
@param[in] jid Initial bare JID.
@returns ::REXMPP_SUCCESS or some ::rexmpp_err error.
*/
-rexmpp_err_t rexmpp_init (rexmpp_t *s, const char *jid);
+rexmpp_err_t rexmpp_init (rexmpp_t *s,
+ const char *jid,
+ log_function_t log_function);
/**
@brief ::rexmpp structure deinitialisation. This will free all the