Browse code

Export db_bind_api through the module interface.

Jan Janak authored on 17/02/2009 09:49:06
Showing 3 changed files
... ...
@@ -42,7 +42,6 @@
42 42
  */
43 43
 
44 44
 #include "../../sr_module.h"
45
-#include "../../lib/srdb1/db.h"
46 45
 #include "km_dbase.h"
47 46
 #include "km_db_mysql.h"
48 47
 
... ...
@@ -56,8 +55,6 @@ static int mysql_mod_init(void);
56 55
 
57 56
 /* MODULE_VERSION */
58 57
 
59
-int db_mysql_bind_api(db_func_t *dbb);
60
-
61 58
 /*! \brief
62 59
  * MySQL database module interface
63 60
  */
... ...
@@ -38,8 +38,12 @@
38 38
 #ifndef KM_DB_MOD_H
39 39
 #define KM_DB_MOD_H
40 40
 
41
+#include "../../lib/srdb1/db.h"
42
+
41 43
 extern unsigned int db_mysql_ping_interval;
42 44
 extern unsigned int db_mysql_timeout_interval;
43 45
 extern unsigned int db_mysql_auto_reconnect;
44 46
 
47
+int db_mysql_bind_api(db_func_t *dbb);
48
+
45 49
 #endif /* KM_DB_MOD_H */
... ...
@@ -32,12 +32,12 @@
32 32
  *  2003-03-11  updated to the new module exports interface (andrei)
33 33
  *  2003-03-16  flags export parameter added (janakj)
34 34
  */
35
-
36 35
 /** @addtogroup mysql
37 36
  *  @{
38 37
  */
39 38
  
40 39
 #include "mysql_mod.h"
40
+#include "km_db_mysql.h"
41 41
 
42 42
 #include "my_uri.h"
43 43
 #include "my_con.h"
... ...
@@ -83,6 +83,7 @@ static cmd_export_t cmds[] = {
83 83
 	{"db_next",   (cmd_function)my_cmd_next,  0, 0, 0},
84 84
 	{"db_setopt", (cmd_function)my_setopt,    0, 0, 0},
85 85
 	{"db_getopt", (cmd_function)my_getopt,    0, 0, 0},
86
+	{"db_bind_api",         (cmd_function)db_mysql_bind_api,      0, 0, 0},
86 87
 	{0, 0, 0, 0, 0}
87 88
 };
88 89