[tracker/extraction-improvements] libtracker-extract: Make the module init/shutdown funcs use tracker_extract_module_* namespace



commit 57bc72493cfde2483df2dedf67106cb8da6edc25
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu May 12 10:59:39 2011 +0200

    libtracker-extract: Make the module init/shutdown funcs use tracker_extract_module_* namespace
    
    This is so the functions don't clash with the TrackerExtract namespace functions

 src/libtracker-extract/tracker-data.h           |    7 ++++++-
 src/libtracker-extract/tracker-module-manager.c |    4 ++--
 2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-extract/tracker-data.h b/src/libtracker-extract/tracker-data.h
index bf6c58d..1a7a57d 100644
--- a/src/libtracker-extract/tracker-data.h
+++ b/src/libtracker-extract/tracker-data.h
@@ -25,6 +25,7 @@
 #endif
 
 #include <libtracker-sparql/tracker-sparql.h>
+#include "tracker-module-manager.h"
 
 G_BEGIN_DECLS
 
@@ -94,6 +95,10 @@ G_BEGIN_DECLS
  * Since: 0.12
  */
 
+gboolean tracker_extract_module_init     (TrackerModuleThreadAwareness  *thread_awareness_ret,
+                                          GError                       **error);
+gboolean tracker_extract_module_shutdown (void);
+
 /**
  * tracker_extract_get_metadata:
  * @uri: a string representing a URI.
@@ -139,7 +144,7 @@ gboolean tracker_extract_get_metadata (const gchar          *uri,
                                        TrackerSparqlBuilder *preupdate,
                                        TrackerSparqlBuilder *metadata,
                                        GString              *where);
-                                       
+
 G_END_DECLS
 
 #endif /* __LIBTRACKER_EXTRACT_DATA_H__ */
diff --git a/src/libtracker-extract/tracker-module-manager.c b/src/libtracker-extract/tracker-module-manager.c
index cdbb790..b6027e6 100644
--- a/src/libtracker-extract/tracker-module-manager.c
+++ b/src/libtracker-extract/tracker-module-manager.c
@@ -24,8 +24,8 @@
 #include "tracker-module-manager.h"
 
 #define EXTRACTOR_FUNCTION "tracker_extract_get_metadata"
-#define INIT_FUNCTION      "tracker_extract_init"
-#define SHUTDOWN_FUNCTION  "tracker_extract_shutdown"
+#define INIT_FUNCTION      "tracker_extract_module_init"
+#define SHUTDOWN_FUNCTION  "tracker_extract_module_shutdown"
 
 typedef struct {
 	const gchar *module_path; /* intern string */



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