Commit bbf15963 authored by Jürg Billeter's avatar Jürg Billeter

tracker-fts: Header file cleanup

parent 3ac2041a
......@@ -130,7 +130,7 @@ tracker_db_interface_sqlite_constructor (GType type,
sqlite3_extended_result_codes (priv->db, 0);
sqlite3_busy_timeout (priv->db, 100000);
if (sqlite3Fts3Init (priv->db) != SQLITE_OK) {
if (tracker_fts_init (priv->db) != SQLITE_OK) {
g_critical ("Could not initialize tracker-fts extension");
} else {
g_message ("Initialized tracker fts extension");
......
......@@ -7794,7 +7794,7 @@ int sqlite3Fts3InitHashTable(sqlite3 *, fts3Hash *, const char *);
** SQLite. If fts3 is built as a dynamically loadable extension, this
** function is called by the sqlite3_extension_init() entry point.
*/
int sqlite3Fts3Init(sqlite3 *db){
int tracker_fts_init(sqlite3 *db){
int rc = SQLITE_OK;
/* Create the virtual table wrapper around the hash-table and overload
......
......@@ -11,16 +11,20 @@
******************************************************************************
**
** This header file is used by programs that want to link against the
** FTS3 library. All it does is declare the sqlite3Fts3Init() interface.
** FTS3 library.
*/
#ifndef __TRACKER_FTS_H__
#define __TRACKER_FTS_H__
#include <sqlite3.h>
#include <glib.h>
G_BEGIN_DECLS
int tracker_fts_init (sqlite3 *db);
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
G_END_DECLS
int sqlite3Fts3Init(sqlite3 *db);
#endif /* __TRACKER_FTS_H__ */
#ifdef __cplusplus
} /* extern "C" */
#endif /* __cplusplus */
......@@ -88,7 +88,7 @@ main (int argc, char **argv)
return EXIT_FAILURE;
}
if (sqlite3Fts3Init (db) != SQLITE_OK) {
if (tracker_fts_init (db) != SQLITE_OK) {
fprintf(stderr, "SQL error\n");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment