]> err.no Git - mapper/blobdiff - src/db.h
Fix GPS settings dialog so it works.
[mapper] / src / db.h
index ea53d82bdd591ea8c999369ebfc4c180e99037fc..b84a2daf75d9488aff4cf9980d15823436cfa164 100644 (file)
--- a/src/db.h
+++ b/src/db.h
@@ -1,11 +1,35 @@
+/*
+ * This file is part of mapper
+ *
+ * Copyright (C) 2007 Kaj-Michael Lang
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
 #include <glib.h>
 #include <sqlite3.h>
 
 #ifndef _MAPPER_DB_H
 #define _MAPPER_DB_H
 
-gboolean db_connect(sqlite3 **db, const gchar *poi_db);
+sqlite3 *_db;
+gchar *_mapper_db;
+
+gboolean db_connect(sqlite3 **db, const gchar *mapper_db);
 gboolean db_check(sqlite3 *db, const gchar *table);
 gboolean db_close(sqlite3 **db);
+gboolean db_exec(sqlite3_stmt *sql);
 
 #endif