@@ -35,14 +35,16 @@
* @{
*/
+#include "db.h"
+
+#include "db_drv.h"
#include "../dprint.h"
#include "../sr_module.h"
#include "../mem/mem.h"
#include "../str.h"
#include "../ut.h"
#include "../list.h"
-#include "db_drv.h"
-#include "db.h"
struct _db_root db_root = DBLIST_INITIALIZER(db_root);
@@ -30,12 +30,14 @@
-#include <string.h>
-#include <stdarg.h>
+#include "db_cmd.h"
-#include "db_cmd.h"
+#include <string.h>
+#include <stdarg.h>
db_cmd_t* db_cmd(enum db_cmd_type type, db_ctx_t* ctx, char* table,
@@ -30,11 +30,13 @@
-#include <stdlib.h>
+#include "db_con.h"
-#include "db_con.h"
+#include <stdlib.h>
/*
+#include "db_ctx.h"
-#include "db_ctx.h"
static struct db_ctx_data* db_ctx_data(str* module, db_drv_t* data)
{
@@ -33,12 +33,13 @@
-#include "../str.h"
-#include "../list.h"
#include "db_drv.h"
#include "db_gen.h"
#include "db_con.h"
+#include "../str.h"
+#include "../list.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
@@ -30,13 +30,16 @@
+#include "db_gen.h"
-#include "db_gen.h"
int db_drv_init(db_drv_t* ptr, void* free_func)
@@ -33,9 +33,11 @@
@@ -30,10 +30,12 @@
+#include "db_fld.h"
-#include "db_fld.h"
char* db_fld_str[] = {
@@ -33,9 +33,9 @@
-#include <time.h>
+#include <time.h>
@@ -30,8 +30,8 @@
int db_payload_idx = 0;
@@ -33,9 +33,10 @@
@@ -30,10 +30,11 @@
+#include "db_pool.h"
+#include "../dprint.h"
#include <unistd.h>
#include <string.h>
-#include "../dprint.h"
-#include "db_pool.h"
SLIST_HEAD(db_pool_head, db_pool_entry);
@@ -33,10 +33,11 @@
-#include <sys/types.h>
#include "db_uri.h"
+#include <sys/types.h>
@@ -30,11 +30,14 @@
+#include "db_rec.h"
-#include "db_rec.h"
db_rec_t* db_rec(db_res_t* res, db_fld_t* fld)
@@ -30,10 +30,10 @@
+#include "db_res.h"
-#include "db_res.h"
db_res_t* db_res(db_cmd_t* cmd)
@@ -30,11 +30,11 @@
+#include "db_uri.h"
-#include "db_uri.h"
/* compare s1 & s2 with a function f (which should return 0 if ==);
@@ -33,8 +33,9 @@