wocky-pubsub-node-protected

wocky-pubsub-node-protected

Synopsis

void                (*WockyPubsubNodeEventHandler)      (WockyPubsubNode *self,
                                                         WockyStanza *event_stanza,
                                                         WockyNode *event_node,
                                                         WockyNode *action_node);
                    WockyPubsubNodeEventMapping;
WockyPorter *       wocky_pubsub_node_get_porter        (WockyPubsubNode *self);
WockyStanza *       wocky_pubsub_node_make_subscribe_stanza
                                                        (WockyPubsubNode *self,
                                                         const gchar *jid,
                                                         WockyNode **pubsub_node,
                                                         WockyNode **subscribe_node);
WockyStanza *       wocky_pubsub_node_make_unsubscribe_stanza
                                                        (WockyPubsubNode *self,
                                                         const gchar *jid,
                                                         const gchar *subid,
                                                         WockyNode **pubsub_node,
                                                         WockyNode **unsubscribe_node);
WockyStanza *       wocky_pubsub_node_make_delete_stanza
                                                        (WockyPubsubNode *self,
                                                         WockyNode **pubsub_node,
                                                         WockyNode **delete_node);
WockyStanza *       wocky_pubsub_node_make_list_subscribers_stanza
                                                        (WockyPubsubNode *self,
                                                         WockyNode **pubsub_node,
                                                         WockyNode **subscriptions_node);
WockyStanza *       wocky_pubsub_node_make_list_affiliates_stanza
                                                        (WockyPubsubNode *self,
                                                         WockyNode **pubsub_node,
                                                         WockyNode **affiliations_node);
GList *             wocky_pubsub_node_parse_affiliations
                                                        (WockyPubsubNode *self,
                                                         WockyNode *affiliations_node);
WockyStanza *       wocky_pubsub_node_make_modify_affiliates_stanza
                                                        (WockyPubsubNode *self,
                                                         const GList *affiliates,
                                                         WockyNode **pubsub_node,
                                                         WockyNode **affiliations_node);
WockyStanza *       wocky_pubsub_node_make_get_configuration_stanza
                                                        (WockyPubsubNode *self,
                                                         WockyNode **pubsub_node,
                                                         WockyNode **configure_node);

Description

Details

WockyPubsubNodeEventHandler ()

void                (*WockyPubsubNodeEventHandler)      (WockyPubsubNode *self,
                                                         WockyStanza *event_stanza,
                                                         WockyNode *event_node,
                                                         WockyNode *action_node);

self :

event_stanza :

event_node :

action_node :


WockyPubsubNodeEventMapping

typedef struct {
    const gchar *action;
    WockyPubsubNodeEventHandler method;
} WockyPubsubNodeEventMapping;


wocky_pubsub_node_get_porter ()

WockyPorter *       wocky_pubsub_node_get_porter        (WockyPubsubNode *self);

self :

Returns :


wocky_pubsub_node_make_subscribe_stanza ()

WockyStanza *       wocky_pubsub_node_make_subscribe_stanza
                                                        (WockyPubsubNode *self,
                                                         const gchar *jid,
                                                         WockyNode **pubsub_node,
                                                         WockyNode **subscribe_node);

self :

jid :

pubsub_node :

subscribe_node :

Returns :


wocky_pubsub_node_make_unsubscribe_stanza ()

WockyStanza *       wocky_pubsub_node_make_unsubscribe_stanza
                                                        (WockyPubsubNode *self,
                                                         const gchar *jid,
                                                         const gchar *subid,
                                                         WockyNode **pubsub_node,
                                                         WockyNode **unsubscribe_node);

self :

jid :

subid :

pubsub_node :

unsubscribe_node :

Returns :


wocky_pubsub_node_make_delete_stanza ()

WockyStanza *       wocky_pubsub_node_make_delete_stanza
                                                        (WockyPubsubNode *self,
                                                         WockyNode **pubsub_node,
                                                         WockyNode **delete_node);

self :

pubsub_node :

delete_node :

Returns :


wocky_pubsub_node_make_list_subscribers_stanza ()

WockyStanza *       wocky_pubsub_node_make_list_subscribers_stanza
                                                        (WockyPubsubNode *self,
                                                         WockyNode **pubsub_node,
                                                         WockyNode **subscriptions_node);

self :

pubsub_node :

subscriptions_node :

Returns :


wocky_pubsub_node_make_list_affiliates_stanza ()

WockyStanza *       wocky_pubsub_node_make_list_affiliates_stanza
                                                        (WockyPubsubNode *self,
                                                         WockyNode **pubsub_node,
                                                         WockyNode **affiliations_node);

self :

pubsub_node :

affiliations_node :

Returns :


wocky_pubsub_node_parse_affiliations ()

GList *             wocky_pubsub_node_parse_affiliations
                                                        (WockyPubsubNode *self,
                                                         WockyNode *affiliations_node);

self :

affiliations_node :

Returns :


wocky_pubsub_node_make_modify_affiliates_stanza ()

WockyStanza *       wocky_pubsub_node_make_modify_affiliates_stanza
                                                        (WockyPubsubNode *self,
                                                         const GList *affiliates,
                                                         WockyNode **pubsub_node,
                                                         WockyNode **affiliations_node);

self :

a pubsub node

affiliates :

a list of WockyPubsubAffiliation structures, describing only the affiliations which should be changed.

pubsub_node :

location at which to store a pointer to the <pubsub/> node, or NULL

affiliations_node :

location at which to store a pointer to the <affiliations/> node, or NULL

Returns :

an IQ stanza to modify the entities affiliated to a node that you own.

wocky_pubsub_node_make_get_configuration_stanza ()

WockyStanza *       wocky_pubsub_node_make_get_configuration_stanza
                                                        (WockyPubsubNode *self,
                                                         WockyNode **pubsub_node,
                                                         WockyNode **configure_node);

self :

a pubsub node

pubsub_node :

location at which to store a pointer to the <pubsub/> node, or NULL

configure_node :

location at which to store a pointer to the <configure/> node, or NULL

Returns :

an IQ stanza to retrieve the configuration of self