[tracker/tracker-store] Fixed missing public function declarations and fixed compiler warnings
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Subject: [tracker/tracker-store] Fixed missing public function declarations and fixed compiler warnings
- Date: Mon, 29 Jun 2009 11:13:16 +0000 (UTC)
commit 0ea7e6dd6e94ca9f79e91fdf39a52f5a8cf4b624
Author: Martyn Russell <martyn imendio com>
Date: Mon Jun 29 12:12:12 2009 +0100
Fixed missing public function declarations and fixed compiler warnings
src/tracker-indexer/tracker-removable-device.c | 79 ++++++++++++------------
src/tracker-indexer/tracker-removable-device.h | 26 +++++---
2 files changed, 54 insertions(+), 51 deletions(-)
---
diff --git a/src/tracker-indexer/tracker-removable-device.c b/src/tracker-indexer/tracker-removable-device.c
index 96fa327..a3edc06 100644
--- a/src/tracker-indexer/tracker-removable-device.c
+++ b/src/tracker-indexer/tracker-removable-device.c
@@ -278,41 +278,41 @@ set_metadata (const gchar *key,
}
}
-static void
-foreach_in_metadata_set_metadata (const gchar *subject,
- const gchar *key,
- const gchar *value,
- gpointer user_data)
-{
- raptor_statement statement;
- AddMetadataInfo *item = user_data;
- raptor_serializer *serializer = item->serializer;
-
- statement.subject = (void *) raptor_new_uri ((const guchar *) subject);
- statement.subject_type = RAPTOR_IDENTIFIER_TYPE_RESOURCE;
-
- statement.predicate = (void *) raptor_new_uri ((const guchar *) (key?key:""));
- statement.predicate_type = RAPTOR_IDENTIFIER_TYPE_RESOURCE;
-
- if (value) {
- statement.object = (unsigned char *) g_strdup (value);
- statement.object_type = RAPTOR_IDENTIFIER_TYPE_LITERAL;
- } else {
- statement.object = (void *) raptor_new_uri ((const guchar *) (""));
- statement.object_type = RAPTOR_IDENTIFIER_TYPE_RESOURCE;
- }
-
- raptor_serialize_statement (serializer,
- &statement);
-
- raptor_free_uri ((raptor_uri *) statement.subject);
- raptor_free_uri ((raptor_uri *) statement.predicate);
-
- if (value)
- g_free ((unsigned char *) statement.object);
- else
- raptor_free_uri ((raptor_uri *) statement.object);
-}
+/* static void */
+/* foreach_in_metadata_set_metadata (const gchar *subject, */
+/* const gchar *key, */
+/* const gchar *value, */
+/* gpointer user_data) */
+/* { */
+/* raptor_statement statement; */
+/* AddMetadataInfo *item = user_data; */
+/* raptor_serializer *serializer = item->serializer; */
+
+/* statement.subject = (void *) raptor_new_uri ((const guchar *) subject); */
+/* statement.subject_type = RAPTOR_IDENTIFIER_TYPE_RESOURCE; */
+
+/* statement.predicate = (void *) raptor_new_uri ((const guchar *) (key?key:"")); */
+/* statement.predicate_type = RAPTOR_IDENTIFIER_TYPE_RESOURCE; */
+
+/* if (value) { */
+/* statement.object = (unsigned char *) g_strdup (value); */
+/* statement.object_type = RAPTOR_IDENTIFIER_TYPE_LITERAL; */
+/* } else { */
+/* statement.object = (void *) raptor_new_uri ((const guchar *) ("")); */
+/* statement.object_type = RAPTOR_IDENTIFIER_TYPE_RESOURCE; */
+/* } */
+
+/* raptor_serialize_statement (serializer, */
+/* &statement); */
+
+/* raptor_free_uri ((raptor_uri *) statement.subject); */
+/* raptor_free_uri ((raptor_uri *) statement.predicate); */
+
+/* if (value) */
+/* g_free ((unsigned char *) statement.object); */
+/* else */
+/* raptor_free_uri ((raptor_uri *) statement.object); */
+/* } */
void
tracker_removable_device_add_metadata (TrackerIndexer *indexer,
@@ -384,11 +384,10 @@ tracker_removable_device_add_metadata (TrackerIndexer *indexer,
suri,
target_file);
- /* TODO: Concatenate SPARQL queries instead
- tracker_module_metadata_foreach (metadata,
- foreach_in_metadata_set_metadata,
- &info);
- */
+ /* TODO: Concatenate SPARQL queries instead */
+ /* tracker_module_metadata_foreach (metadata, */
+ /* foreach_in_metadata_set_metadata, */
+ /* &info); */
g_free (info.about_uri);
diff --git a/src/tracker-indexer/tracker-removable-device.h b/src/tracker-indexer/tracker-removable-device.h
index 2a9f635..521c22d 100644
--- a/src/tracker-indexer/tracker-removable-device.h
+++ b/src/tracker-indexer/tracker-removable-device.h
@@ -27,17 +27,21 @@
G_BEGIN_DECLS
-void tracker_removable_device_add_metadata (TrackerIndexer *indexer,
- const gchar *mount_point,
- const gchar *uri,
- TrackerSparqlBuilder *sparql);
-void tracker_removable_device_add_removal (TrackerIndexer *indexer,
- const gchar *mount_point,
- const gchar *uri);
-void tracker_removable_device_add_move (TrackerIndexer *indexer,
- const gchar *mount_point,
- const gchar *from_uri,
- const gchar *to_uri);
+void tracker_removable_device_add_metadata (TrackerIndexer *indexer,
+ const gchar *mount_point,
+ const gchar *uri,
+ TrackerSparqlBuilder *sparql);
+void tracker_removable_device_add_removal (TrackerIndexer *indexer,
+ const gchar *mount_point,
+ const gchar *uri);
+void tracker_removable_device_add_move (TrackerIndexer *indexer,
+ const gchar *mount_point,
+ const gchar *from_uri,
+ const gchar *to_uri);
+void tracker_removable_device_optimize (TrackerIndexer *indexer,
+ const gchar *mount_point);
+void tracker_removable_device_load (TrackerIndexer *indexer,
+ const gchar *mount_point);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]