Module: sip-router
Branch: master
Commit: fa9e7de6bbef15110cb4940769b27d90b2c000c8
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=fa9e7de…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Nov 1 20:32:42 2011 +0100
db_text(k): init DB API lib in mod_register()
---
modules_k/db_text/dbtext.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/modules_k/db_text/dbtext.c b/modules_k/db_text/dbtext.c
index 2739b92..633dbb3 100644
--- a/modules_k/db_text/dbtext.c
+++ b/modules_k/db_text/dbtext.c
@@ -83,6 +83,12 @@ struct module_exports exports = {
0 /* per-child init function */
};
+int mod_register(char *path, int *dlflags, void *p1, void *p2)
+{
+ if(db_api_init()<0)
+ return -1;
+ return 0;
+}
static int mod_init(void)
{