Module: sip-router
Branch: master
Commit: f122ee6e63087d15cee95642c4e8ac9249b4f958
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f122ee6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Nov 1 20:28:26 2011 +0100
db_unixodbc: init DB API lib in mod_register()
---
modules_k/db_unixodbc/db_unixodbc.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/modules_k/db_unixodbc/db_unixodbc.c b/modules_k/db_unixodbc/db_unixodbc.c
index 1debdef..60dbb79 100644
--- a/modules_k/db_unixodbc/db_unixodbc.c
+++ b/modules_k/db_unixodbc/db_unixodbc.c
@@ -100,8 +100,15 @@ int db_unixodbc_bind_api(db_func_t *dbb)
return 0;
}
+int mod_register(char *path, int *dlflags, void *p1, void *p2)
+{
+ if(db_api_init()<0)
+ return -1;
+ return 0;
+}
+
int unixodbc_mod_init(void)
{
- return db_query_init();
+ return 0;
}