[grilo-plugins] tracker: implement may_resolve()



commit 42d811722af7196ac22e62d038eec9aa82d687fd
Author: Lionel Landwerlin <lionel g landwerlin linux intel com>
Date:   Fri Feb 25 16:54:53 2011 +0000

    tracker: implement may_resolve()
    
    Signed-off-by: Lionel Landwerlin <lionel g landwerlin linuxA1;2403;0c.intel.com>

 src/media/tracker/grl-tracker-api.c |    9 +++++++++
 src/media/tracker/grl-tracker-api.h |    5 +++++
 src/media/tracker/grl-tracker.c     |    1 +
 3 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/media/tracker/grl-tracker-api.c b/src/media/tracker/grl-tracker-api.c
index e007cc8..d13c04b 100644
--- a/src/media/tracker/grl-tracker-api.c
+++ b/src/media/tracker/grl-tracker-api.c
@@ -381,6 +381,15 @@ tracker_metadata_cb (GObject                    *source_object,
 
 /**/
 
+gboolean
+grl_tracker_source_may_resolve (GrlMetadataSource *source,
+                                GrlMedia *media,
+                                GrlKeyID key_id,
+                                GList **missing_keys)
+{
+  return TRUE;
+}
+
 const GList *
 grl_tracker_source_supported_keys (GrlMetadataSource *source)
 {
diff --git a/src/media/tracker/grl-tracker-api.h b/src/media/tracker/grl-tracker-api.h
index 4e2b52b..dfec6ee 100644
--- a/src/media/tracker/grl-tracker-api.h
+++ b/src/media/tracker/grl-tracker-api.h
@@ -31,6 +31,11 @@
 
 void grl_tracker_init_requests (void);
 
+gboolean grl_tracker_source_may_resolve (GrlMetadataSource *source,
+                                         GrlMedia *media,
+                                         GrlKeyID key_id,
+                                         GList **missing_keys);
+
 const GList *grl_tracker_source_supported_keys (GrlMetadataSource *source);
 
 void grl_tracker_source_query (GrlMediaSource *source,
diff --git a/src/media/tracker/grl-tracker.c b/src/media/tracker/grl-tracker.c
index 66e183b..01a4dd5 100644
--- a/src/media/tracker/grl-tracker.c
+++ b/src/media/tracker/grl-tracker.c
@@ -339,6 +339,7 @@ grl_tracker_source_class_init (GrlTrackerSourceClass * klass)
   source_class->notify_change_start = grl_tracker_source_change_start;
   source_class->notify_change_stop  = grl_tracker_source_change_stop;
 
+  metadata_class->may_resolve    = grl_tracker_source_may_resolve;
   metadata_class->supported_keys = grl_tracker_source_supported_keys;
 
   g_class->finalize     = grl_tracker_source_finalize;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]