diff options
author | defanor <defanor@uberspace.net> | 2021-09-24 17:04:49 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2021-09-24 17:04:49 +0300 |
commit | 8021dfe24fc44c7a1adbcf8bd49c48e488e8ba2c (patch) | |
tree | f201b26dcf46f856a797ff52a9cbf1a09828d4d1 /src/rexmpp_pubsub.h | |
parent | 6fce0156861461cf35222b048e422db61898bb80 (diff) |
Pass user-provided pointers to <iq> callback functions
Diffstat (limited to 'src/rexmpp_pubsub.h')
-rw-r--r-- | src/rexmpp_pubsub.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/rexmpp_pubsub.h b/src/rexmpp_pubsub.h index 1c36fc2..b5a7c3e 100644 --- a/src/rexmpp_pubsub.h +++ b/src/rexmpp_pubsub.h @@ -12,7 +12,8 @@ rexmpp_pubsub_iq (rexmpp_t *s, const char *pubsub_namespace, const char *service_jid, xmlNodePtr payload, - rexmpp_iq_callback_t callback); + rexmpp_iq_callback_t callback, + void *cb_data); void rexmpp_pubsub_item_publish (rexmpp_t *s, @@ -20,17 +21,20 @@ rexmpp_pubsub_item_publish (rexmpp_t *s, const char *node, const char *item_id, xmlNodePtr payload, - rexmpp_iq_callback_t callback); + rexmpp_iq_callback_t callback, + void *cb_data); void rexmpp_pubsub_item_retract (rexmpp_t *s, const char *service_jid, const char *node, const char *item_id, - rexmpp_iq_callback_t callback); + rexmpp_iq_callback_t callback, + void *cb_data); void rexmpp_pubsub_node_delete (rexmpp_t *s, const char *service_jid, const char *node, - rexmpp_iq_callback_t callback); + rexmpp_iq_callback_t callback, + void *cb_data); |