Module: sip-router
Branch: janakj/bdb
Commit: 26da7b7420eaf03690e7929095f89d117bfa4366
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=26da7b7…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Sun Feb 15 16:11:14 2009 +0100
Make the module compile in the sip-router source tree.
---
modules/db_berkeley/Makefile | 5 ++++-
modules/db_berkeley/bdb_cmd.h | 6 +++---
modules/db_berkeley/bdb_con.h | 6 +++---
modules/db_berkeley/bdb_fld.c | 2 +-
modules/db_berkeley/bdb_fld.h | 4 ++--
modules/db_berkeley/bdb_lib.h | 4 ++--
modules/db_berkeley/bdb_mod.c | 4 ++--
modules/db_berkeley/bdb_res.c | 2 +-
modules/db_berkeley/bdb_res.h | 4 ++--
modules/db_berkeley/bdb_uri.h | 4 ++--
10 files changed, 22 insertions(+), 19 deletions(-)
diff --git a/modules/db_berkeley/Makefile b/modules/db_berkeley/Makefile
index 851d961..723bc6f 100644
--- a/modules/db_berkeley/Makefile
+++ b/modules/db_berkeley/Makefile
@@ -10,10 +10,13 @@ NAME=db_berkeley.so
# extra debug messages
# -DBDB_EXTRA_DEBUG is optional
-DEFS +=-I$(LOCALBASE)/include -I$(LOCALBASE)/BerkeleyDB.4.6/include \
+DEFS +=-DSER_MOD_INTERFACE -I$(LOCALBASE)/include -I$(LOCALBASE)/BerkeleyDB.4.6/include
\
-I$(SYSBASE)/include
LIBS=-L$(LOCALBASE)/lib -L$(SYSBASE)/lib -L$(LOCALBASE)/BerkeleyDB.4.6/lib -ldb
+SERLIBPATH=../../lib
+SER_LIBS=$(SERLIBPATH)/srdb2/srdb2
+
include ../../Makefile.modules
diff --git a/modules/db_berkeley/bdb_cmd.h b/modules/db_berkeley/bdb_cmd.h
index 18d7f3c..55e4b60 100644
--- a/modules/db_berkeley/bdb_cmd.h
+++ b/modules/db_berkeley/bdb_cmd.h
@@ -38,9 +38,9 @@
#include <sys/time.h>
#include <db.h>
-#include "../../db/db_drv.h"
-#include "../../db/db_cmd.h"
-#include "../../db/db_res.h"
+#include "../../lib/srdb2/db_drv.h"
+#include "../../lib/srdb2/db_cmd.h"
+#include "../../lib/srdb2/db_res.h"
#include "../../str.h"
#include "bdb_con.h"
diff --git a/modules/db_berkeley/bdb_con.h b/modules/db_berkeley/bdb_con.h
index fbf16e7..91a92e9 100644
--- a/modules/db_berkeley/bdb_con.h
+++ b/modules/db_berkeley/bdb_con.h
@@ -36,9 +36,9 @@
#include <time.h>
#include <db.h>
-#include "../../db/db_pool.h"
-#include "../../db/db_con.h"
-#include "../../db/db_uri.h"
+#include "../../lib/srdb2/db_pool.h"
+#include "../../lib/srdb2/db_con.h"
+#include "../../lib/srdb2/db_uri.h"
#include "bdb_lib.h"
diff --git a/modules/db_berkeley/bdb_fld.c b/modules/db_berkeley/bdb_fld.c
index fb5c440..37ef121 100644
--- a/modules/db_berkeley/bdb_fld.c
+++ b/modules/db_berkeley/bdb_fld.c
@@ -37,7 +37,7 @@
#include <string.h>
#include <time.h> /* strptime, XOPEN issue must be >= 4 */
-#include "../../db/db_drv.h"
+#include "../../lib/srdb2/db_drv.h"
#include "../../mem/mem.h"
#include "../../dprint.h"
#include "../../ut.h"
diff --git a/modules/db_berkeley/bdb_fld.h b/modules/db_berkeley/bdb_fld.h
index 27acd9d..0f529a9 100644
--- a/modules/db_berkeley/bdb_fld.h
+++ b/modules/db_berkeley/bdb_fld.h
@@ -36,8 +36,8 @@
#include <db.h>
-#include "../../db/db_gen.h"
-#include "../../db/db_fld.h"
+#include "../../lib/srdb2/db_gen.h"
+#include "../../lib/srdb2/db_fld.h"
typedef struct _bdb_fld {
db_drv_t gen;
diff --git a/modules/db_berkeley/bdb_lib.h b/modules/db_berkeley/bdb_lib.h
index 1f8bb1b..90d0308 100644
--- a/modules/db_berkeley/bdb_lib.h
+++ b/modules/db_berkeley/bdb_lib.h
@@ -38,8 +38,8 @@
#include <db.h>
#include "../../str.h"
-#include "../../db/db.h"
-#include "../../db/db_fld.h"
+#include "../../lib/srdb2/db.h"
+#include "../../lib/srdb2/db_fld.h"
/*max number of columns in a table*/
#define MAX_NUM_COLS 32
diff --git a/modules/db_berkeley/bdb_mod.c b/modules/db_berkeley/bdb_mod.c
index bd7e771..7da25b3 100644
--- a/modules/db_berkeley/bdb_mod.c
+++ b/modules/db_berkeley/bdb_mod.c
@@ -37,8 +37,8 @@
#include "../../mem/mem.h"
#include "../../sr_module.h"
-#include "../../db/db_res.h"
-#include "../../db/db.h"
+#include "../../lib/srdb2/db_res.h"
+#include "../../lib/srdb2/db.h"
#include "bdb_lib.h"
#include "bdb_con.h"
diff --git a/modules/db_berkeley/bdb_res.c b/modules/db_berkeley/bdb_res.c
index fd5212c..1a64c73 100644
--- a/modules/db_berkeley/bdb_res.c
+++ b/modules/db_berkeley/bdb_res.c
@@ -33,7 +33,7 @@
#include "../../mem/mem.h"
#include "../../dprint.h"
-#include "../../db/db_gen.h"
+#include "../../lib/srdb2/db_gen.h"
void bdb_res_free(db_res_t* res, bdb_res_t *payload)
diff --git a/modules/db_berkeley/bdb_res.h b/modules/db_berkeley/bdb_res.h
index df4940e..dd0f654 100644
--- a/modules/db_berkeley/bdb_res.h
+++ b/modules/db_berkeley/bdb_res.h
@@ -29,8 +29,8 @@
#ifndef _BDB_RES_H_
#define _BDB_RES_H_
-#include "../../db/db_drv.h"
-#include "../../db/db_res.h"
+#include "../../lib/srdb2/db_drv.h"
+#include "../../lib/srdb2/db_res.h"
typedef struct _bdb_res {
db_drv_t gen;
diff --git a/modules/db_berkeley/bdb_uri.h b/modules/db_berkeley/bdb_uri.h
index d76468a..6b4124d 100644
--- a/modules/db_berkeley/bdb_uri.h
+++ b/modules/db_berkeley/bdb_uri.h
@@ -33,8 +33,8 @@
* The functions parsing and interpreting bdb: URIs.
*/
-#include "../../db/db_uri.h"
-#include "../../db/db_drv.h"
+#include "../../lib/srdb2/db_uri.h"
+#include "../../lib/srdb2/db_drv.h"
#include <db.h>