From 0a312d63b65bb9cb637b9f054e7f48180676c225 Mon Sep 17 00:00:00 2001 From: Jussi Kukkonen Date: Tue, 19 Nov 2013 12:06:50 +0200 Subject: [PATCH] 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 --- src/librygel-server/rygel-content-directory.vala | 16 ++++++--------- src/librygel-server/rygel-media-server-plugin.vala | 24 ++++++++++++++++++++++ 2 files changed, 30 insertions(+), 10 deletions(-) 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; /** -- 2.7.4