tracker r2599 - in branches/turtle: . src/libtracker-data
- From: pvanhoof svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2599 - in branches/turtle: . src/libtracker-data
- Date: Thu, 27 Nov 2008 14:55:43 +0000 (UTC)
Author: pvanhoof
Date: Thu Nov 27 14:55:42 2008
New Revision: 2599
URL: http://svn.gnome.org/viewvc/tracker?rev=2599&view=rev
Log:
2008-11-27 Philip Van Hoof <philip codeminded be>
* src/libtracker-data/tracker-data-update.c: Coping with list-value
values while storing predicates coming from Turtle
Modified:
branches/turtle/ChangeLog
branches/turtle/src/libtracker-data/tracker-data-update.c
Modified: branches/turtle/src/libtracker-data/tracker-data-update.c
==============================================================================
--- branches/turtle/src/libtracker-data/tracker-data-update.c (original)
+++ branches/turtle/src/libtracker-data/tracker-data-update.c Thu Nov 27 14:55:42 2008
@@ -602,12 +602,10 @@
TrackerConfig *config;
} ForeachInMetadataInfo;
+
static void
-foreach_in_metadata_set_metadata(TrackerField *field,
- gpointer value,
- gpointer user_data)
+set_metadata (TrackerField *field, gpointer value, ForeachInMetadataInfo *info)
{
- ForeachInMetadataInfo *info = user_data;
gchar *parsed_value;
/* TODO untested and unfinished port that came from the decomposed
@@ -631,6 +629,29 @@
g_free (parsed_value);
}
+static void
+foreach_in_metadata_set_metadata (TrackerField *field,
+ gpointer value,
+ gpointer user_data)
+{
+ ForeachInMetadataInfo *info = user_data;
+ gchar *parsed_value;
+
+ if (!tracker_field_get_multiple_values (field)) {
+ set_metadata (field, value, user_data);
+ } else {
+ GList *list;
+
+ list = value;
+
+ while (list) {
+ set_metadata (field, list->data, user_data);
+ list = list->next;
+ }
+ }
+
+}
+
/* TODO: URI branch path -> uri */
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]