#ifndef _MAPPER_DB_H
#define _MAPPER_DB_H
+#define DB_PREP(db_,sql_,stmt_) \
+ if (sqlite3_prepare_v2(db_, sql_, -1, &stmt_, NULL)!=SQLITE_OK) { \
+ g_printerr("Failed to prepare: [%s] Error: %s", \
+ sql_, sqlite3_errmsg(db_)); \
+ return FALSE; \
+ }
+
sqlite3 *_db;
gchar *_mapper_db;
/*****************************************************************************/
-#define DB_PREP(db_,sql_,stmt_) \
- if (sqlite3_prepare_v2(db_, sql_, -1, &stmt_, NULL)!=SQLITE_OK) { \
- g_printerr("Failed to prepare: [%s] Error: %s", \
- sql_, sqlite3_errmsg(db_)); \
- return FALSE; \
- }
-
gboolean
osm_db_prepare(sqlite3 *db)
{