GUPnPLastChangeParser

GUPnPLastChangeParser — A/V LastChange event XML parser

Synopsis

                    GUPnPLastChangeParser;
GUPnPLastChangeParser* gupnp_last_change_parser_new     (void);
gboolean            gupnp_last_change_parser_parse_last_change_valist
                                                        (GUPnPLastChangeParser *parser,
                                                         guint instance_id,
                                                         const char *last_change_xml,
                                                         GError **error,
                                                         va_list var_args);
gboolean            gupnp_last_change_parser_parse_last_change
                                                        (GUPnPLastChangeParser *parser,
                                                         guint instance_id,
                                                         const char *last_change_xml,
                                                         GError **error,
                                                         ...);

Description

GUPnPLastChangeParser parses XML strings from LastChange events that are generated by AVTransport and RenderingControl services.

Details

GUPnPLastChangeParser

typedef struct {
        GObject parent;
} GUPnPLastChangeParser;


gupnp_last_change_parser_new ()

GUPnPLastChangeParser* gupnp_last_change_parser_new     (void);

Returns : A new GUPnPLastChangeParser

gupnp_last_change_parser_parse_last_change_valist ()

gboolean            gupnp_last_change_parser_parse_last_change_valist
                                                        (GUPnPLastChangeParser *parser,
                                                         guint instance_id,
                                                         const char *last_change_xml,
                                                         GError **error,
                                                         va_list var_args);

See gupnp_last_change_parser_parse_last_change(); this version takes a va_list for use by language bindings.

parser : A GUPnPLastChangeParser
instance_id : The ID of the AV instance caller is interested in
last_change_xml : The xml from the "LastChange" event to parse
error : The location where to store any error, or NULL
var_args :
Returns : TRUE on success.

gupnp_last_change_parser_parse_last_change ()

gboolean            gupnp_last_change_parser_parse_last_change
                                                        (GUPnPLastChangeParser *parser,
                                                         guint instance_id,
                                                         const char *last_change_xml,
                                                         GError **error,
                                                         ...);

Parses the xml fragment from a LastChange event.

parser : A GUPnPLastChangeParser
instance_id : The ID of the AV instance caller is interested in
last_change_xml : The xml from the "LastChange" event to parse
error : The location where to store any error, or NULL
... : tuples of state variable name, state variable type, and state variable value location, terminated with NULL. The state variable values should be freed after use.
Returns : TRUE on success.