diff options
author | defanor <defanor@uberspace.net> | 2021-02-12 22:10:14 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2021-02-12 22:10:14 +0300 |
commit | 289c9a88b4e0323f4b9d038e78219ab56a948073 (patch) | |
tree | 472543256734cb3d9bbec681b27acd5283dcea86 /src/rexmpp_pubsub.h | |
parent | d0d568f9bc39f9e35b6d39ecf21b5e425ea91c85 (diff) |
Add a few XEP-0060 (pubsub) helper functions
Diffstat (limited to 'src/rexmpp_pubsub.h')
-rw-r--r-- | src/rexmpp_pubsub.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/rexmpp_pubsub.h b/src/rexmpp_pubsub.h new file mode 100644 index 0000000..1c36fc2 --- /dev/null +++ b/src/rexmpp_pubsub.h @@ -0,0 +1,36 @@ +/** + @file rexmpp_pubsub.h + @brief XEP-0060 helper functions + @author defanor <defanor@uberspace.net> + @date 2021 + @copyright MIT license. +*/ + +void +rexmpp_pubsub_iq (rexmpp_t *s, + const char *iq_type, + const char *pubsub_namespace, + const char *service_jid, + xmlNodePtr payload, + rexmpp_iq_callback_t callback); + +void +rexmpp_pubsub_item_publish (rexmpp_t *s, + const char *service_jid, + const char *node, + const char *item_id, + xmlNodePtr payload, + rexmpp_iq_callback_t callback); + +void +rexmpp_pubsub_item_retract (rexmpp_t *s, + const char *service_jid, + const char *node, + const char *item_id, + rexmpp_iq_callback_t callback); + +void +rexmpp_pubsub_node_delete (rexmpp_t *s, + const char *service_jid, + const char *node, + rexmpp_iq_callback_t callback); |