Top | ![]() |
![]() |
![]() |
![]() |
GUPnPMediaCollection *
gupnp_media_collection_new (void
);
Create a new writable media collection.
GUPnPMediaCollection *
gupnp_media_collection_new_from_string
(const char *data
);
Parse a new GUPnPMediaCollection from a block of XML data.
void gupnp_media_collection_set_title (GUPnPMediaCollection *collection
,const char *title
);
Set the title of a GUPnPMediaCollection.
const char *
gupnp_media_collection_get_title (GUPnPMediaCollection *collection
);
void gupnp_media_collection_set_author (GUPnPMediaCollection *collection
,const char *author
);
Set the author of the media collection
const char *
gupnp_media_collection_get_author (GUPnPMediaCollection *collection
);
GUPnPDIDLLiteItem *
gupnp_media_collection_add_item (GUPnPMediaCollection *collection
);
char *
gupnp_media_collection_get_string (GUPnPMediaCollection *collection
);
XML string representing this media
collection. g_free()
after use. If the colleciton is not mutable, returns a
copy of the original string.
[transfer full]
GList *
gupnp_media_collection_get_items (GUPnPMediaCollection *collection
);
A GList containing the elemens of this collection, in proper order. Unref all items and free the list after use.
[transfer full][element-type GUPnPDIDLLiteItem]
gboolean
gupnp_media_collection_get_mutable (GUPnPMediaCollection *collection
);