wocky-pubsub-service-protected

wocky-pubsub-service-protected

Functions

Description

Functions

wocky_pubsub_service_create_retrieve_subscriptions_stanza ()

WockyStanza *
wocky_pubsub_service_create_retrieve_subscriptions_stanza
                               (WockyPubsubService *self,
                                WockyPubsubNode *node,
                                WockyNode **pubsub_node,
                                WockyNode **subscriptions_node);

wocky_pubsub_service_parse_subscription ()

WockyPubsubSubscription *
wocky_pubsub_service_parse_subscription
                               (WockyPubsubService *self,
                                WockyNode *subscription_node,
                                const gchar *parent_node_attr,
                                GError **error);

wocky_pubsub_service_parse_subscriptions ()

GList *
wocky_pubsub_service_parse_subscriptions
                               (WockyPubsubService *self,
                                WockyNode *subscriptions_node,
                                GList **subscription_nodes);

wocky_pubsub_service_create_create_node_stanza ()

WockyStanza *
wocky_pubsub_service_create_create_node_stanza
                               (WockyPubsubService *self,
                                const gchar *name,
                                WockyDataForm *config,
                                WockyNode **pubsub_node,
                                WockyNode **create_node);

wocky_pubsub_service_handle_create_node_reply ()

WockyPubsubNode *
wocky_pubsub_service_handle_create_node_reply
                               (WockyPubsubService *self,
                                WockyNodeTree *create_tree,
                                const gchar *requested_name,
                                GError **error);

Handles the body of a reply to a create node request. This is ever-so-slightly involved, because the server is allowed to omit the body of the reply if you specified a node name and it created a node with that name, but it may also tell you "hey, you asked for 'ringo', but I gave you 'george'". Good times.

Parameters

self

a pubsub service

 

create_tree

the <create/> tree from the reply to an attempt to create a node, or NULL if none was present in the reply.

 

requested_name

the name we asked the server to use for the node, or NULL if we requested an instant node

 

error

location at which to store an error

 

Returns

a pubsub node if the reply made sense, or NULL with error set if not.


wocky_pubsub_service_get_porter ()

WockyPorter *
wocky_pubsub_service_get_porter (WockyPubsubService *self);

Types and Values