Refactor state database (#22)

* make db_connect return the connection

* rename db_conn -> db_handle

* more renaming

* clang-format

* free the db_handle
This commit is contained in:
Philipp Moritz
2016-09-25 21:52:06 -07:00
committed by Robert Nishihara
parent 1e08629013
commit db8c0acc71
9 changed files with 67 additions and 69 deletions
+2 -2
View File
@@ -5,9 +5,9 @@
#include "task.h"
/* Add task to the task table, handle errors here. */
status task_table_add_task(db_conn *db, task_iid task_iid, task_spec *task);
status task_table_add_task(db_handle *db, task_iid task_iid, task_spec *task);
/* Get specific task from the task table. */
status task_table_get_task(db_conn *db, task_iid task_iid, task_spec *task);
status task_table_get_task(db_handle *db, task_iid task_iid, task_spec *task);
#endif /* TASK_TABLE_H */