#include <glib.h>
#include <sqlite3.h>
+#include "path.h"
#include "filter.h"
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);