C SIGFOX CALLBACK
0.0.1
A Sigfox Callback program writtent in C
|
SQLite operations header file. More...
#include <mongoose.h>
Go to the source code of this file.
Enumerations | |
enum | API_Operation { API_OP_NULL, API_OP_GET, API_OP_SET, API_OP_DEL } |
Possible operation to do on the database. More... | |
Functions | |
sqlite3 * | db_open (const char *db_path) |
Open the database and create its tables. More... | |
void | db_close (void **db_handler) |
Close the database. More... | |
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. More... | |
SQLite operations header file.
enum API_Operation |
void db_close | ( | void ** | db_handler | ) |
Close the database.
db_handle | The database handler |
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.
nc | The non-client | |
[in] | hm | The HTTP message |
[in] | key | The key |
db | The database | |
[in] | op | The operation |
sqlite3* db_open | ( | const char * | db_path | ) |
Open the database and create its tables.
[in] | db_path | The database path |