GUPnP A/V Reference Manual | ||||
---|---|---|---|---|
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);
typedef struct { GObject parent; gpointer gupnp_reserved; } GUPnPDIDLLiteParser;
GUPnPDIDLLiteParser* gupnp_didl_lite_parser_new (void);
Returns : | A new GUPnPDIDLLiteParser object. |
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. |
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 |