[rygel] core: Add SimpleContainer.clear()
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] core: Add SimpleContainer.clear()
- Date: Wed, 23 Dec 2009 15:42:05 +0000 (UTC)
commit d069f286e9da72225a68d8fb51a0a8279ea936d4
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Dec 23 15:49:37 2009 +0200
core: Add SimpleContainer.clear()
API for clearing the SimpleContainer.
src/rygel/rygel-simple-container.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
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<MediaObject>? get_children (
uint offset,
uint max_count,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]