rygel r307 - trunk/src/rygel
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r307 - trunk/src/rygel
- Date: Wed, 26 Nov 2008 14:28:16 +0000 (UTC)
Author: zeeshanak
Date: Wed Nov 26 14:28:15 2008
New Revision: 307
URL: http://svn.gnome.org/viewvc/rygel?rev=307&view=rev
Log:
Keep the search and sort caps in a protected field.
Modified:
trunk/src/rygel/rygel-content-directory.vala
Modified: trunk/src/rygel/rygel-content-directory.vala
==============================================================================
--- trunk/src/rygel/rygel-content-directory.vala (original)
+++ trunk/src/rygel/rygel-content-directory.vala Wed Nov 26 14:28:15 2008
@@ -46,6 +46,8 @@
protected uint32 system_update_id;
protected string feature_list;
+ protected string search_caps;
+ protected string sort_caps;
DIDLLiteWriter didl_writer;
@@ -75,7 +77,6 @@
this.didl_writer = new DIDLLiteWriter ();
this.system_update_id = 0;
-
this.feature_list =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>" +
"<Features xmlns=\"urn:schemas-upnp-org:av:avs\" " +
@@ -83,6 +84,8 @@
"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;
@@ -219,7 +222,7 @@
private void get_search_capabilities_cb (ContentDirectory content_dir,
ServiceAction action) {
/* Set action return arguments */
- action.set ("SearchCaps", typeof (string), "");
+ action.set ("SearchCaps", typeof (string), this.search_caps);
action.return ();
}
@@ -230,14 +233,14 @@
ref GLib.Value value) {
/* Set action return arguments */
value.init (typeof (string));
- value.set_string ("");
+ value.set_string (this.search_caps);
}
/* action GetSortCapabilities implementation */
private void get_sort_capabilities_cb (ContentDirectory content_dir,
ServiceAction action) {
/* Set action return arguments */
- action.set ("SortCaps", typeof (string), "");
+ action.set ("SortCaps", typeof (string), this.sort_caps);
action.return ();
}
@@ -248,7 +251,7 @@
ref GLib.Value value) {
/* Set action return arguments */
value.init (typeof (string));
- value.set_string ("");
+ value.set_string (this.sort_caps);
}
/* action GetFeatureList implementation */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]