[rygel] core: search_caps is now a private constant
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] core: search_caps is now a private constant
- Date: Mon, 9 Nov 2009 18:44:45 +0000 (UTC)
commit 1ebb404fadd54ee06674c1837993b362aec47b15
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Oct 28 17:55:09 2009 +0200
core: search_caps is now a private constant
ContentDirectory.search_caps is now a private constant.
src/rygel/rygel-content-directory.vala | 7 +++----
1 files 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\">" +
"</Features>";
- 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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]