[grilo-plugins/tracker-notification: 12/14] tracker: implement may_resolve()
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins/tracker-notification: 12/14] tracker: implement may_resolve()
- Date: Sat, 26 Feb 2011 15:18:17 +0000 (UTC)
commit 7f0af6ed972ff4f3b6be57b37766d0e28cb34fd8
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/tracker/grl-tracker-api.c | 9 +++++++++
src/tracker/grl-tracker-api.h | 5 +++++
src/tracker/grl-tracker.c | 1 +
3 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker/grl-tracker-api.c b/src/tracker/grl-tracker-api.c
index e007cc8..d13c04b 100644
--- a/src/tracker/grl-tracker-api.c
+++ b/src/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/tracker/grl-tracker-api.h b/src/tracker/grl-tracker-api.h
index 4e2b52b..dfec6ee 100644
--- a/src/tracker/grl-tracker-api.h
+++ b/src/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/tracker/grl-tracker.c b/src/tracker/grl-tracker.c
index 66e183b..01a4dd5 100644
--- a/src/tracker/grl-tracker.c
+++ b/src/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]