GUPnPDIDLLiteParser

GUPnPDIDLLiteParser — A/V DIDL-Lite XML parser

Synopsis

                    GUPnPDIDLLiteParser;
GUPnPDIDLLiteParser* gupnp_didl_lite_parser_new         (void);
gboolean            gupnp_didl_lite_parser_parse_didl   (GUPnPDIDLLiteParser *parser,
                                                         const char *didl,
                                                         GUPnPDIDLLiteParserObjectCallback callback,
                                                         gpointer user_data,
                                                         GError **error);
void                (*GUPnPDIDLLiteParserObjectCallback)
                                                        (GUPnPDIDLLiteParser *parser,
                                                         xmlNode *object_node,
                                                         gpointer user_data);

Description

GUPnPDIDLLiteParser parses DIDL-Lite XML strings.

Details

GUPnPDIDLLiteParser

typedef struct {
        GObject parent;

        gpointer gupnp_reserved;
} GUPnPDIDLLiteParser;


gupnp_didl_lite_parser_new ()

GUPnPDIDLLiteParser* gupnp_didl_lite_parser_new         (void);

Returns : A new GUPnPDIDLLiteParser object.

gupnp_didl_lite_parser_parse_didl ()

gboolean            gupnp_didl_lite_parser_parse_didl   (GUPnPDIDLLiteParser *parser,
                                                         const char *didl,
                                                         GUPnPDIDLLiteParserObjectCallback callback,
                                                         gpointer user_data,
                                                         GError **error);

Parses DIDL-Lite XML string didl, calling the supplied callback for each DIDL-Lite object it finds in the process.

parser : A GUPnPDIDLLiteParser
didl : The DIDL-Lite XML string to be parsed
callback : The callback to call for each DIDL-Lite object found
user_data : User data for callback
error : The location where to store any error, or NULL
Returns : TRUE on success.

GUPnPDIDLLiteParserObjectCallback ()

void                (*GUPnPDIDLLiteParserObjectCallback)
                                                        (GUPnPDIDLLiteParser *parser,
                                                         xmlNode *object_node,
                                                         gpointer user_data);

parser : The GUPnPDIDLLiteParser the notification originates from
object_node : The now available DIDL object
user_data : User data