diff options
author | defanor <defanor@uberspace.net> | 2020-05-30 11:36:58 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2020-05-30 11:36:58 +0300 |
commit | 24aefb5b3d27cc7c763c8b386735f1c95ac22a90 (patch) | |
tree | 73002ea6754c50dba31dfe695c4886d8a72b7a63 /examples | |
parent | 336061f2b643baeeb066f5bf60f837daf851f3ef (diff) |
Remove callback functions from rexmpp_init arguments
Leaving required parameters only (i.e., just an initial JID).
Diffstat (limited to 'examples')
-rw-r--r-- | examples/basic.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/examples/basic.c b/examples/basic.c index 1f5527a..d9a3f65 100644 --- a/examples/basic.c +++ b/examples/basic.c @@ -69,12 +69,11 @@ main (int argc, char **argv) { return -1; } - err = rexmpp_init(&s, - argv[1], - my_logger, - my_sasl_property_cb, - my_xml_in_cb, - my_xml_out_cb); + err = rexmpp_init(&s, argv[1]); + s.log_function = my_logger; + s.sasl_property_cb = my_sasl_property_cb; + s.xml_in_cb = my_xml_in_cb; + s.xml_out_cb = my_xml_out_cb; if (err != REXMPP_SUCCESS) { puts("error"); return -1; |