add: database functions and generalisation
This commit is contained in:
parent
7c6eed8dc2
commit
14c35a4227
8 changed files with 193 additions and 149 deletions
include
|
@ -24,4 +24,17 @@ database_transaction_commit();
|
|||
void
|
||||
database_transaction_rollback();
|
||||
|
||||
|
||||
int
|
||||
database_helper_get_id(sqlite3_stmt *stmt);
|
||||
|
||||
int*
|
||||
database_helper_get_ids(sqlite3_stmt *stmt);
|
||||
|
||||
char*
|
||||
database_helper_get_string(sqlite3_stmt *stmt);
|
||||
|
||||
char**
|
||||
database_helper_get_strings(sqlite3_stmt *stmt);
|
||||
|
||||
#endif /* CORE_DATABASE_H */
|
||||
|
|
|
@ -56,4 +56,7 @@ relay_get_all();
|
|||
relay_t**
|
||||
relay_get_by_controller_id(int controller_id);
|
||||
|
||||
int
|
||||
relay_get_controller_id_for_relay(int relay_id);
|
||||
|
||||
#endif /* CORE_RELAY_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue