[PATCH 1/2] tracker: add supported operation method
- From: llandwerlin gmail com
- To: grilo-list gnome org
- Subject: [PATCH 1/2] tracker: add supported operation method
- Date: Thu, 13 Jan 2011 18:58:56 +0000
From: Lionel Landwerlin <lionel g landwerlin linux intel com>
Signed-off-by: Lionel Landwerlin <lionel g landwerlin linux intel com>
---
src/tracker/grl-tracker.c | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/src/tracker/grl-tracker.c b/src/tracker/grl-tracker.c
index e0730c2..f1535d5 100644
--- a/src/tracker/grl-tracker.c
+++ b/src/tracker/grl-tracker.c
@@ -82,6 +82,8 @@ gboolean grl_tracker_plugin_init (GrlPluginRegistry *registry,
const GrlPluginInfo *plugin,
GList *configs);
+static GrlSupportedOps grl_tracker_source_supported_operations (GrlMetadataSource *metadata_source);
+
static const GList *grl_tracker_source_supported_keys (GrlMetadataSource *source);
@@ -161,7 +163,10 @@ grl_tracker_source_class_init (GrlTrackerSourceClass * klass)
GrlMetadataSourceClass *metadata_class = GRL_METADATA_SOURCE_CLASS (klass);
GObjectClass *g_class = G_OBJECT_CLASS (klass);
source_class->query = grl_tracker_source_query;
+
metadata_class->supported_keys = grl_tracker_source_supported_keys;
+ metadata_class->supported_operations = grl_tracker_source_supported_operations;
+
g_class->finalize = grl_tracker_source_finalize;
g_type_class_add_private (klass, sizeof (GrlTrackerSourcePriv));
@@ -216,6 +221,18 @@ build_grilo_media (const gchar *rdf_type)
/* ================== API Implementation ================ */
+static GrlSupportedOps
+grl_tracker_source_supported_operations (GrlMetadataSource *metadata_source)
+{
+ GrlSupportedOps caps;
+ GrlTrackerSource *source;
+
+ source = GRL_TRACKER_SOURCE (metadata_source);
+ caps = GRL_OP_QUERY;
+
+ return caps;
+}
+
static const GList *
grl_tracker_source_supported_keys (GrlMetadataSource *source)
{
--
1.7.2.3
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]