From 1ebb404fadd54ee06674c1837993b362aec47b15 Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Wed, 28 Oct 2009 17:55:09 +0200 Subject: [PATCH] core: search_caps is now a private constant ContentDirectory.search_caps is now a private constant. --- src/rygel/rygel-content-directory.vala | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/rygel/rygel-content-directory.vala b/src/rygel/rygel-content-directory.vala index 65d50b3..f45a05a 100644 --- a/src/rygel/rygel-content-directory.vala +++ b/src/rygel/rygel-content-directory.vala @@ -43,9 +43,9 @@ public class Rygel.ContentDirectory: Service { public const string UPNP_TYPE = "urn:schemas-upnp-org:service:ContentDirectory:2"; public const string DESCRIPTION_PATH = "xml/ContentDirectory.xml"; + private const string SEARCH_CAPS = ""; protected string feature_list; - protected string search_caps; protected string sort_caps; internal HTTPServer http_server; @@ -90,7 +90,6 @@ public class Rygel.ContentDirectory: Service { "xsi:schemaLocation=\"urn:schemas-upnp-org:av:avs" + "http://www.upnp.org/schemas/av/avs-v1-20060531.xsd\">" + ""; - this.search_caps = ""; this.sort_caps = ""; this.action_invoked["Browse"] += this.browse_cb; @@ -167,7 +166,7 @@ public class Rygel.ContentDirectory: Service { private void get_search_capabilities_cb (ContentDirectory content_dir, owned ServiceAction action) { /* Set action return arguments */ - action.set ("SearchCaps", typeof (string), this.search_caps); + action.set ("SearchCaps", typeof (string), SEARCH_CAPS); action.return (); } @@ -178,7 +177,7 @@ public class Rygel.ContentDirectory: Service { ref GLib.Value value) { /* Set action return arguments */ value.init (typeof (string)); - value.set_string (this.search_caps); + value.set_string (SEARCH_CAPS); } /* action GetSortCapabilities implementation */ -- 2.7.4