[rygel/wip/cablelabs-integration: 23/27] server: Add MediaResource.dup () function
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/wip/cablelabs-integration: 23/27] server: Add MediaResource.dup () function
- Date: Fri, 5 Dec 2014 20:26:16 +0000 (UTC)
commit fcb96ab969d3e104e80c7997a106e0f59658d5d4
Author: Jens Georg <mail jensge org>
Date: Thu Nov 20 07:34:39 2014 +0100
server: Add MediaResource.dup () function
Shorthand for new MediaResource.from_resource (resource.get_name (), resource);
Signed-off-by: Jens Georg <mail jensge org>
src/librygel-server/rygel-media-resource.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/librygel-server/rygel-media-resource.vala b/src/librygel-server/rygel-media-resource.vala
index 0520734..c0986bf 100644
--- a/src/librygel-server/rygel-media-resource.vala
+++ b/src/librygel-server/rygel-media-resource.vala
@@ -113,6 +113,10 @@ public class Rygel.MediaResource : GLib.Object {
return new_speeds;
}
+ public MediaResource dup () {
+ return new MediaResource.from_resource (this.get_name (), this);
+ }
+
public string get_name () {
return this.name;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]