Top |
GUPnPDIDLLiteWriter *
gupnp_didl_lite_writer_new (const char *language
);
Note: language
should always be set to NULL
, DLNA does not support the
language parameter.
GUPnPDIDLLiteItem *
gupnp_didl_lite_writer_add_item (GUPnPDIDLLiteWriter *writer
);
Creates a new item, attaches it to writer
and returns it.
GUPnPDIDLLiteContainer *
gupnp_didl_lite_writer_add_container (GUPnPDIDLLiteWriter *writer
);
Creates a new container, attaches it to writer
and returns it.
GUPnPDIDLLiteDescriptor *
gupnp_didl_lite_writer_add_descriptor (GUPnPDIDLLiteWriter *writer
);
Creates a new descriptor, attaches it to object
and returns it.
xmlNode *
gupnp_didl_lite_writer_get_xml_node (GUPnPDIDLLiteWriter *writer
);
Get the pointer to root node in XML document.
char *
gupnp_didl_lite_writer_get_string (GUPnPDIDLLiteWriter *writer
);
Creates a string representation of the DIDL-Lite XML document.
const char *
gupnp_didl_lite_writer_get_language (GUPnPDIDLLiteWriter *writer
);
Get the language the DIDL-Lite fragment is in.
void gupnp_didl_lite_writer_filter (GUPnPDIDLLiteWriter *writer
,const char *filter
);
Clears the DIDL-Lite XML document of the properties not specified in the
filter
. The passed filter string would typically come from the 'Filter'
argument of Browse or Search actions from a ContentDirectory control point.
Please refer to Section 2.3.15 of UPnP AV ContentDirectory version 3
specification for details on this string.