tracker r1628 - branches/xesam-support/src/trackerd
- From: pvanhoof svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r1628 - branches/xesam-support/src/trackerd
- Date: Tue, 10 Jun 2008 14:11:54 +0000 (UTC)
Author: pvanhoof
Date: Tue Jun 10 14:11:54 2008
New Revision: 1628
URL: http://svn.gnome.org/viewvc/tracker?rev=1628&view=rev
Log:
Code cleanup
Modified:
branches/xesam-support/src/trackerd/tracker-xesam-live-search.c
Modified: branches/xesam-support/src/trackerd/tracker-xesam-live-search.c
==============================================================================
--- branches/xesam-support/src/trackerd/tracker-xesam-live-search.c (original)
+++ branches/xesam-support/src/trackerd/tracker-xesam-live-search.c Tue Jun 10 14:11:54 2008
@@ -534,17 +534,23 @@
}
+// todo for ottela
+// You can of course replace this list with whatever is more convenient for you
typedef enum {
ARRAY_OF_INT,
ARRAY_OF_BOOLEAN,
+
+ /* Also usable for list of uris */
ARRAY_OF_STRING,
- SANE_TYPE /* string, float, integer, boolean, datetime */
+
+ /* string, float, integer, boolean, datetime */
+ SANE_TYPE
} OntologyType;
static OntologyType
get_type_for (TrackerXesamLiveSearch *self, gint column)
{
- // todo
+ // todo for ottela
return SANE_TYPE;
}
@@ -557,7 +563,7 @@
static inline gpointer
rows_lookup (GPtrArray *rows, gint key)
{
- guint i;
+ guint i;
gpointer value = NULL;
for (i = 0; i < rows->len; i++) {
@@ -567,6 +573,7 @@
break;
}
}
+
return value;
}
@@ -578,6 +585,7 @@
for (i = 0; i < rows->len; i++) {
g_slice_free (OneRow, g_ptr_array_index (rows, i));
}
+
g_ptr_array_free (rows, TRUE);
}
@@ -585,8 +593,10 @@
rows_insert (GPtrArray *rows, gint key, gpointer value)
{
OneRow *row = g_slice_new (OneRow);
+
row->key = key;
row->value = value;
+
g_ptr_array_add (rows, row);
}
@@ -792,7 +802,6 @@
}
rows_migrate (rows, result);
-
rows_destroy (rows);
*hit_data = result;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]