From d069f286e9da72225a68d8fb51a0a8279ea936d4 Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Wed, 23 Dec 2009 15:49:37 +0200 Subject: [PATCH] core: Add SimpleContainer.clear() API for clearing the SimpleContainer. --- src/rygel/rygel-simple-container.vala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/rygel/rygel-simple-container.vala b/src/rygel/rygel-simple-container.vala index 2f24f68..d6806da 100644 --- a/src/rygel/rygel-simple-container.vala +++ b/src/rygel/rygel-simple-container.vala @@ -56,6 +56,12 @@ public class Rygel.SimpleContainer : Rygel.MediaContainer { this.child_count--; } + public void clear () { + this.children.clear (); + + this.child_count = 0; + } + public override async Gee.List? get_children ( uint offset, uint max_count, -- 2.7.4