garten

annotate db.h @ 20:17b2bcc42d72

added check for empty result; minor stuff
author meillo@marmaro.de
date Sun, 27 Jul 2008 21:34:54 +0200
parents 8db6497d6065
children
rev   line source
meillo@11 1 #include <sqlite3.h>
meillo@0 2
meillo@11 3 char* database;
meillo@17 4 int gametime;
meillo@11 5 char query[1024];
meillo@11 6 sqlite3* db;
meillo@11 7 sqlite3_stmt* stmt;
meillo@11 8
meillo@17 9 int read_time();
meillo@0 10
meillo@12 11 void db_connect();
meillo@12 12 void db_close();
meillo@12 13 sqlite3_stmt* db_query(char* query);
meillo@12 14 int db_update(char* query);
meillo@17 15 int db_rows(sqlite3_stmt* stmt);
meillo@17 16 void db_error(char* info);