Top | ![]() |
![]() |
![]() |
![]() |
struct | WockyXmppReaderClass |
enum | WockyXmppReaderState |
enum | WockyXmppReaderError |
#define | WOCKY_XMPP_READER_ERROR |
GEnum ├── WockyXmppReaderError ╰── WockyXmppReaderState GObject ╰── WockyXmppReader
GQuark
wocky_xmpp_reader_error_quark (void
);
Get the error quark used by the reader.
WockyXmppReader *
wocky_xmpp_reader_new (void
);
Convenience function to create a new WockyXmppReader.
WockyXmppReader *
wocky_xmpp_reader_new_no_stream (void
);
Convenience function to create a new WockyXmppReader that has streaming mode disabled.
WockyXmppReader *
wocky_xmpp_reader_new_no_stream_ns (const gchar *default_namespace
);
Create a new WockyXmppReader, with “streaming-mode” disabled and the specified “default-namespace”.
WockyXmppReaderState
wocky_xmpp_reader_get_state (WockyXmppReader *reader
);
void wocky_xmpp_reader_push (WockyXmppReader *reader
,const guint8 *data
,gsize length
);
Push an amount of data to parse.
WockyStanza *
wocky_xmpp_reader_pop_stanza (WockyXmppReader *reader
);
Gets one WockyStanza out of the reader or NULL if there are no available stanzas.
WockyStanza *
wocky_xmpp_reader_peek_stanza (WockyXmppReader *reader
);
Returns the first WockyStanza available from reader or NULL if there are no available stanzas. The stanza is not removed from the readers queue
One WockyStanza or NULL if there are no available stanzas. The stanza is owned by the WockyXmppReader
GError *
wocky_xmpp_reader_get_error (WockyXmppReader *reader
);
Get the error from the reader
void
wocky_xmpp_reader_reset (WockyXmppReader *reader
);
Reset the xml parser.
“default-namespace”
property“default-namespace” gchar *
The default namespace for the root element of the document. Only meaningful if streaming-mode is FALSE.
Flags: Read / Write / Construct Only
Default value: ""
“from”
property“from” gchar *
from attribute in the xml stream opening.
Flags: Read
Default value: NULL
“id”
property“id” gchar *
id attribute in the xml stream opening.
Flags: Read
Default value: NULL
“lang”
property“lang” gchar *
xml:lang attribute in the xml stream opening.
Flags: Read
Default value: NULL
“streaming-mode”
property“streaming-mode” gboolean
Whether the xml to be read is one big stream or separate documents.
Flags: Read / Write / Construct Only
Default value: TRUE
“to”
property“to” gchar *
to attribute in the xml stream opening.
Flags: Read
Default value: NULL
“version”
property“version” gchar *
version attribute in the xml stream opening.
Flags: Read
Default value: NULL