[rygel/wip/track-changes: 14/18] wip: Implement totalDeletedChildCount
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/wip/track-changes: 14/18] wip: Implement totalDeletedChildCount
- Date: Mon, 22 Oct 2012 08:47:50 +0000 (UTC)
commit c0d5b52e3349afdef70c3d3d43285d8dc5009062
Author: Jens Georg <jensg openismus com>
Date: Sun Oct 21 17:14:29 2012 +0200
wip: Implement totalDeletedChildCount
src/librygel-server/rygel-media-container.vala | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/librygel-server/rygel-media-container.vala b/src/librygel-server/rygel-media-container.vala
index 8aeee09..b6f42c3 100644
--- a/src/librygel-server/rygel-media-container.vala
+++ b/src/librygel-server/rygel-media-container.vala
@@ -88,6 +88,10 @@ public abstract class Rygel.MediaContainer : MediaObject {
public uint32 update_id;
public int64 storage_used;
+ // This is a uint32 in UPnP. SystemUpdateID should reach uint32.MAX way
+ // before this variable and cause a SystemResetProcedure.
+ public int64 total_deleted_child_count;
+
public string sort_criteria { set; get; default = DEFAULT_SORT_CRITERIA; }
internal override OCMFlags ocm_flags {
@@ -131,6 +135,7 @@ public abstract class Rygel.MediaContainer : MediaObject {
this.child_count = child_count;
this.update_id = 0;
this.storage_used = -1;
+ this.total_deleted_child_count = 0;
this.upnp_class = STORAGE_FOLDER;
this.container_updated.connect (on_container_updated);
@@ -200,6 +205,10 @@ public abstract class Rygel.MediaContainer : MediaObject {
didl_container.upnp_class = this.upnp_class;
didl_container.searchable = this is SearchableContainer;
didl_container.storage_used = this.storage_used;
+ if (this is TrackableContainer) {
+ didl_container.total_deleted_child_count =
+ (uint) this.total_deleted_child_count;
+ }
if (this.parent == null && (this is SearchableContainer)) {
(this as SearchableContainer).serialize_search_parameters
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]