![]() |
![]() |
![]() |
wocky Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
gboolean wocky_pubsub_distill_ambivalent_iq_reply (GObject *source
,GAsyncResult *res
,const gchar *pubsub_ns
,const gchar *child_name
,WockyXmppNode **child_out
,GError **error
); gboolean wocky_pubsub_distill_iq_reply (GObject *source
,GAsyncResult *res
,const gchar *pubsub_ns
,const gchar *child_name
,WockyXmppNode **child_out
,GError **error
); gboolean wocky_pubsub_distill_void_iq_reply (GObject *source
,GAsyncResult *res
,GError **error
); WockyXmppStanza * wocky_pubsub_make_publish_stanza (const gchar *service
,const gchar *node
,WockyXmppNode **pubsub_out
,WockyXmppNode **publish_out
,WockyXmppNode **item_out
); WockyXmppStanza * wocky_pubsub_make_stanza (const gchar *service
,WockyStanzaSubType sub_type
,const gchar *pubsub_ns
,const gchar *action_name
,WockyXmppNode **pubsub_node
,WockyXmppNode **action_node
);
gboolean wocky_pubsub_distill_ambivalent_iq_reply (GObject *source
,GAsyncResult *res
,const gchar *pubsub_ns
,const gchar *child_name
,WockyXmppNode **child_out
,GError **error
);
Helper function to finish a wocky_porter_send_iq_async()
operation
and extract a particular pubsub child from the resulting reply, if it is
present. This is like wocky_pubsub_distill_iq_reply()
, but is ambivalent as
to whether the <pubsub/> structure has to be included.
|
a WockyPorter instance |
|
a result passed to the callback for wocky_porter_send_iq_async()
|
|
the namespace of the <pubsub/> node accepted in this reply (such as WOCKY_XMPP_NS_PUBSUB) |
|
the name of the child of <pubsub/> accepted in this reply (such as "subscriptions") |
|
location at which to store a pointer to the node named
child_name , if is found, or to be set to NULL if it is not
found
|
|
location at which to store an error if the call to
wocky_porter_send_iq_async() returned an error, or if the reply was
an error
|
Returns : |
TRUE if the IQ was a success; FALSE if
sending the IQ failed or the reply had type='error',
with error set appropriately.
|
gboolean wocky_pubsub_distill_iq_reply (GObject *source
,GAsyncResult *res
,const gchar *pubsub_ns
,const gchar *child_name
,WockyXmppNode **child_out
,GError **error
);
Helper function to finish a wocky_porter_send_iq_async()
operation
and extract a particular pubsub child from the resulting reply, if needed.
|
a WockyPorter instance |
|
a result passed to the callback for wocky_porter_send_iq_async()
|
|
the namespace of the <pubsub/> node expected in this reply
(such as WOCKY_XMPP_NS_PUBSUB), or NULL if one is not expected
|
|
the name of the child of <pubsub/> expected in this reply
(such as "subscriptions"); ignored if pubsub_ns is NULL
|
|
location at which to store a pointer to that child node, or
NULL if you don't need it
|
|
location at which to store an error if the call to
wocky_porter_send_iq_async() returned an error, or if the reply was
an error
|
Returns : |
TRUE if the desired pubsub child was found; FALSE if
sending the IQ failed, the reply had type='error', or the
pubsub child was not found, with error set appropriately.
|
gboolean wocky_pubsub_distill_void_iq_reply (GObject *source
,GAsyncResult *res
,GError **error
);
Helper function to finish a wocky_porter_send_iq_async()
operation where no
pubsub child is expected in the resulting reply.
|
a WockyPorter instance |
|
a result passed to the callback for wocky_porter_send_iq_async()
|
|
location at which to store an error if the call to
wocky_porter_send_iq_async() returned an error, or if the reply was
an error
|
Returns : |
TRUE if the IQ was a success; FALSE if
sending the IQ failed or the reply had type='error',
with error set appropriately.
|
WockyXmppStanza * wocky_pubsub_make_publish_stanza (const gchar *service
,const gchar *node
,WockyXmppNode **pubsub_out
,WockyXmppNode **publish_out
,WockyXmppNode **item_out
);
|
the JID of a PubSub service, or NULL
|
|
the name of a node on service ; may not be NULL
|
|
address at which to store a pointer to the <pubsub/> node |
|
address at which to store a pointer to the <publish/> node |
|
address at which to store a pointer to the <item/> node |
Returns : |
a new iq[type='set']/pubsub/publish/item stanza |
WockyXmppStanza * wocky_pubsub_make_stanza (const gchar *service
,WockyStanzaSubType sub_type
,const gchar *pubsub_ns
,const gchar *action_name
,WockyXmppNode **pubsub_node
,WockyXmppNode **action_node
);
|
the JID of a PubSub service, or NULL
|
|
|
|
the namespace for the <pubsub/> node of the stanza |
|
the action node to add to <pubsub/> |
|
address at which to store a pointer to the <pubsub/> node |
|
address at wihch to store a pointer to the <action />
node
|
Returns : |
a new iq[type='set']/pubsub/action stanza
|