C SIGFOX CALLBACK  0.0.1
A Sigfox Callback program writtent in C
db_plugin_sqlite.h
Go to the documentation of this file.
1 
9 #ifndef __DB_PLUGIN_SQLITE_H__
10 #define __DB_PLUGIN_SQLITE_H__
11 
12 #include <mongoose.h>
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 
23 typedef enum {
29 
30 
38 sqlite3* db_open(const char *db_path);
39 
40 
46 void db_close(void **db_handler);
47 
48 
58 void db_op(struct mg_connection *nc, const struct http_message *hm, const struct mg_str *key, void *db, int op);
59 
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 #endif /* __DB_PLUGIN_SQLITE_H__ */
Add a raws structure.
Definition: db_plugin_sqlite.h:26
Definition: mongoose.h:1200
Select * from raws.
Definition: db_plugin_sqlite.h:25
Delete a raws structure (Not Implemented yet)
Definition: db_plugin_sqlite.h:27
Definition: mongoose.h:2062
void db_op(struct mg_connection *nc, const struct http_message *hm, const struct mg_str *key, void *db, int op)
Do an operation on the database.
API_Operation
Possible operation to do on the database.
Definition: db_plugin_sqlite.h:23
Definition: mongoose.h:1241
sqlite3 * db_open(const char *db_path)
Open the database and create its tables.
void db_close(void **db_handler)
Close the database.
Do nothing.
Definition: db_plugin_sqlite.h:24