Top | ![]() |
![]() |
![]() |
![]() |
GUPnPCDSLastChangeParser *
gupnp_cds_last_change_parser_new (void
);
Create a new GUPnPCDSLastChangeParser.
This parser is able to parse LastChange as defined in the ContentDirectory:3 specification.
GList * gupnp_cds_last_change_parser_parse (GUPnPCDSLastChangeParser *parser
,const char *last_change
,GError **error
);
Parse a LastChange XML document in the flavor defined by the ContentDirectory:3 specification.
parser |
||
last_change |
XML string to parse |
|
error |
Return value for parser error or |
GUPnPCDSLastChangeEntry *
gupnp_cds_last_change_entry_ref (GUPnPCDSLastChangeEntry *entry
);
Increase reference count of a GUPnPCDSLastChangeEntry.
void
gupnp_cds_last_change_entry_unref (GUPnPCDSLastChangeEntry *entry
);
Decrease reference count of a GUPnPCDSLastChangeEntry. If the reference
count drops to 0, entry
is freed.
GUPnPCDSLastChangeEvent
gupnp_cds_last_change_entry_get_event (GUPnPCDSLastChangeEntry *entry
);
Get the type of the last change entry as defined in GUPnPCDSLastChangeEvent.
An event from the GUPnPCDSLastChangeEvent or
GUPNP_CDS_LAST_CHANGE_EVENT_INVALID
if the entry is not valid.
const char *
gupnp_cds_last_change_entry_get_object_id
(GUPnPCDSLastChangeEntry *entry
);
Get the ID of the object in this change entry.
const char *
gupnp_cds_last_change_entry_get_parent_id
(GUPnPCDSLastChangeEntry *entry
);
Get the parent object id of the object in this change entry. This is only
valid if gupnp_cds_last_change_entry_get_event()
returns
GUPNP_CDS_LAST_CHANGE_EVENT_OBJECT_ADDED
.
const char *
gupnp_cds_last_change_entry_get_class (GUPnPCDSLastChangeEntry *entry
);
Get the class of the object in this change entry. This is only
valid if gupnp_cds_last_change_entry_get_event()
returns
GUPNP_CDS_LAST_CHANGE_EVENT_OBJECT_ADDED
.
gboolean
gupnp_cds_last_change_entry_is_subtree_update
(GUPnPCDSLastChangeEntry *entry
);
Returns whether this entry is part of a subtree update.
guint32
gupnp_cds_last_change_entry_get_update_id
(GUPnPCDSLastChangeEntry *entry
);
Get the update id of the last change entry.
Invalid GUPnPCDSLastChangeEntry. |
||
The GUPnPCDSLastChangeEntry is an object added event. |
||
The GUPnPCDSLastChangeEntry is an object removal event. |
||
The GUPnPCDSLastChangeEntry is an object modification event. |
||
The GUPnPCDSLastChangeEntry is a subtree update done event. |