]> err.no Git - mapper/commitdiff
Include path.h
authorKaj-Michael Lang <milang@tal.org>
Mon, 21 Apr 2008 08:02:54 +0000 (11:02 +0300)
committerKaj-Michael Lang <milang@tal.org>
Mon, 21 Apr 2008 08:02:54 +0000 (11:02 +0300)
src/track.h

index beb0dfc55e986ce95a47770dfbfb7d4967a657f0..352504a6fae51d4ab7d49fde0be77849dcf06b00 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <glib.h>
 #include <sqlite3.h>
+#include "path.h"
 #include "filter.h"
 
 Path *_track;
@@ -12,17 +13,6 @@ Path *_track;
 #define TRACK_SQL_INSERT_TRACK_POINT "insert into trackpoints (tid,dt,lat,lon,alt,hdop,vdop,pdop,sat,fix) values (?,?,?,?,?,?,?,?,?,?)"
 #define TRACK_SQL_SELECT_TRACK_POINTS "select tid,dt,lat,lon,alt,hdop,vdop,pdop,sat,fix from trackpoints where tid=? order by dt"
 
-struct {
-       sqlite3_stmt *insert_track;
-       sqlite3_stmt *select_tracks;
-       sqlite3_stmt *select_latest_track;
-       sqlite3_stmt *delete_track;
-
-       sqlite3_stmt *insert_track_point;
-       sqlite3_stmt *select_track_points;
-       sqlite3_stmt *delete_track_points;
-} track_sql;
-
 void track_init(void);
 void track_deinit(void);