From: Jussi Kukkonen Date: Tue, 19 Nov 2013 10:06:50 +0000 (+0200) Subject: server: Allow MediaServerPlugins to override search capabilities X-Git-Tag: RYGEL_0_21_2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a312d63b65bb9cb637b9f054e7f48180676c225;p=profile%2Fivi%2Frygel.git server: Allow MediaServerPlugins to override search capabilities Use a virtual MediaServerPlugin.search_caps property instead of hard coding the value in ContentDirectory. This way plugin implementations can represent their search capabilities correctly. The default value is still the same: no change needed in plugins. https://bugzilla.gnome.org/show_bug.cgi?id=712660 --- diff --git a/src/librygel-server/rygel-content-directory.vala b/src/librygel-server/rygel-content-directory.vala index cdc115a..e87f480 100644 --- a/src/librygel-server/rygel-content-directory.vala +++ b/src/librygel-server/rygel-content-directory.vala @@ -85,8 +85,6 @@ public class Rygel.ContentDirectory: Service { private string service_reset_token; - private string search_caps; - public override void constructed () { base.constructed (); @@ -118,12 +116,6 @@ public class Rygel.ContentDirectory: Service { this.last_change = new LastChange (); - this.search_caps = RelationalExpression.CAPS; - - if (PluginCapabilities.TRACK_CHANGES in plugin.capabilities) { - this.search_caps += ",upnp:objectUpdateID,upnp:containerUpdateID"; - } - this.feature_list = "" + " _upload_profiles; /**