wocky-pubsub-service-protected

wocky-pubsub-service-protected

Synopsis

WockyStanza *       wocky_pubsub_service_create_retrieve_subscriptions_stanza
                                                        (WockyPubsubService *self,
                                                         WockyPubsubNode *node,
                                                         WockyNode **pubsub_node,
                                                         WockyNode **subscriptions_node);
WockyPubsubSubscription * wocky_pubsub_service_parse_subscription
                                                        (WockyPubsubService *self,
                                                         WockyNode *subscription_node,
                                                         const gchar *parent_node_attr,
                                                         GError **error);
GList *             wocky_pubsub_service_parse_subscriptions
                                                        (WockyPubsubService *self,
                                                         WockyNode *subscriptions_node,
                                                         GList **subscription_nodes);
WockyStanza *       wocky_pubsub_service_create_create_node_stanza
                                                        (WockyPubsubService *self,
                                                         const gchar *name,
                                                         WockyDataForm *config,
                                                         WockyNode **pubsub_node,
                                                         WockyNode **create_node);
WockyPubsubNode *   wocky_pubsub_service_handle_create_node_reply
                                                        (WockyPubsubService *self,
                                                         WockyNodeTree *create_tree,
                                                         const gchar *requested_name,
                                                         GError **error);
WockyPorter *       wocky_pubsub_service_get_porter     (WockyPubsubService *self);

Description

Details

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

self :

node :

pubsub_node :

subscriptions_node :

Returns :


wocky_pubsub_service_parse_subscription ()

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

self :

subscription_node :

parent_node_attr :

error :

Returns :


wocky_pubsub_service_parse_subscriptions ()

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

self :

subscriptions_node :

subscription_nodes :

Returns :


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

self :

name :

config :

pubsub_node :

create_node :

Returns :


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.

self :

a pubsub service

create_tree :

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

self :

Returns :