diff options
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); |