Module: sip-router
Branch: janakj/bdb
Commit: 728a5e6280219c2b4a2d58940b2e14a7e29950b1
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=728a5e6…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Thu Feb 19 15:06:58 2009 +0100
Merge branch janakj/bdb into master.
* commit 'sr/janakj/bdb': (97 commits)
Integrate module interfaces.
Include bdb_mod.h and remove variables available there from the file.
Various functions prefixed with km_ to avoid conflicts.
New header file bdb_mod.h with parameters defined in bdb_mod.c
Comment out MODULE_VERSION in km_db_berkeley.c
Make km_sources compile within the db_berkeley sip-router module.
Link the module with libkmi.
Add km_prefix to locally included header files.
Defines protecting header fields changed to match filenames.
Remoted km_Makefile and km_README (same as README)
Link the modules also with libsrdb1
Make the module compile in the sip-router source tree.
Fixed wrong order of directives in modules Makefile.
Database flags renamed from DB_* to SRDB_* to avoid conflicts.
Module db_berkeley updated to database api version 2.0.
- unify common rows and row allocation functionality in the DB API core
- unify common rows and row allocation functionality in the DB API core
- fix compilation on OpenBSD, related to missing includes paths and wrong
- fix compilation on OpenBSD, related to missing includes paths and wrong
- disable big integer (DB_BIGINT) support for non SQL DB modules for now
...
---
Module: sip-router
Branch: master
Commit: 728a5e6280219c2b4a2d58940b2e14a7e29950b1
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=728a5e6…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Thu Feb 19 15:06:58 2009 +0100
Merge branch janakj/bdb into master.
* commit 'sr/janakj/bdb': (97 commits)
Integrate module interfaces.
Include bdb_mod.h and remove variables available there from the file.
Various functions prefixed with km_ to avoid conflicts.
New header file bdb_mod.h with parameters defined in bdb_mod.c
Comment out MODULE_VERSION in km_db_berkeley.c
Make km_sources compile within the db_berkeley sip-router module.
Link the module with libkmi.
Add km_prefix to locally included header files.
Defines protecting header fields changed to match filenames.
Remoted km_Makefile and km_README (same as README)
Link the modules also with libsrdb1
Make the module compile in the sip-router source tree.
Fixed wrong order of directives in modules Makefile.
Database flags renamed from DB_* to SRDB_* to avoid conflicts.
Module db_berkeley updated to database api version 2.0.
- unify common rows and row allocation functionality in the DB API core
- unify common rows and row allocation functionality in the DB API core
- fix compilation on OpenBSD, related to missing includes paths and wrong
- fix compilation on OpenBSD, related to missing includes paths and wrong
- disable big integer (DB_BIGINT) support for non SQL DB modules for now
...
---
Module: sip-router
Branch: janakj/bdb
Commit: b78bbf2bd8a14f7adab1867a47abd4fbd8fbda97
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b78bbf2…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Thu Feb 19 14:05:20 2009 +0100
New header file bdb_mod.h with parameters defined in bdb_mod.c
This is file is necessary so that we can access the parameter variables
from km_* files (and remove their equivalents from km_db_berkeley.c
---
modules/db_berkeley/bdb_mod.h | 37 +++++++++++++++++++++++++++++++++++++
1 files changed, 37 insertions(+), 0 deletions(-)
diff --git a/modules/db_berkeley/bdb_mod.h b/modules/db_berkeley/bdb_mod.h
new file mode 100644
index 0000000..0623418
--- /dev/null
+++ b/modules/db_berkeley/bdb_mod.h
@@ -0,0 +1,37 @@
+/*
+ * $Id$
+ *
+ * db_berkeley module, portions of this code were templated using
+ * the dbtext and postgres modules.
+
+ * Copyright (C) 2007 Cisco Systems
+ *
+ * This file is part of Kamailio, a free SIP server.
+ *
+ * Kamailio is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version
+ *
+ * Kamailio is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * History:
+ * --------
+ * 2007-09-19 genesis (wiquan)
+ */
+
+#ifndef _BDB_MOD_H
+#define _BDB_MOD_H
+
+extern int auto_reload;
+extern int log_enable;
+extern int journal_roll_interval;
+
+#endif /* _BDB_MOD_H */
Module: sip-router
Branch: janakj/bdb
Commit: c876c13f77d68e28117509160cd61944704800a4
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c876c13…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Thu Feb 19 14:17:11 2009 +0100
Various functions prefixed with km_ to avoid conflicts.
There are many non-static functions in km_* files which need to be
renamed to avoid conflicts with functions with the same name in
other source files (originating from ser). The list of functions
prefixed with km_:
bdblib_close, bdblib_destroy, bdblib_close, bdblib_reopen,
bdblib_create_dbenv, bdblib_recover, bdblib_get_db,
bdblib_is_database, bdblib_get_table, bdblib_log,
bdblib_create_journal, bdblib_create_table, load_metadata_columns,
load_metadata_defaults, load_metadata_keys, load_metadata_readonly,
load_metadata_logflags, bdblib_valtochar, bdb_val2str, bdb_time2str,
bdblib_init, bdb_query
---
modules/db_berkeley/km_bdb_lib.c | 78 +++++++++++++++++-----------------
modules/db_berkeley/km_bdb_lib.h | 34 +++++++-------
modules/db_berkeley/km_bdb_util.c | 2 +-
modules/db_berkeley/km_bdb_util.h | 2 +-
modules/db_berkeley/km_bdb_val.c | 6 +-
modules/db_berkeley/km_bdb_val.h | 2 +-
modules/db_berkeley/km_db_berkeley.c | 58 +++++++++++++-------------
modules/db_berkeley/km_db_berkeley.h | 4 +-
8 files changed, 93 insertions(+), 93 deletions(-)
Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=c87…
Module: sip-router
Branch: janakj/bdb
Commit: 0314e282b3db2ca61dfacc7bde5fb17a5004e573
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0314e28…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Thu Feb 19 11:12:08 2009 +0100
Merge branch 'master' of ssh://janakj@git.sip-router.org/sip-router into bdb
* 'master' of ssh://janakj@git.sip-router.org/sip-router: (176 commits)
Make km_sources compile, part two.
Link with libkmi, sources from kamailio use the management interface.
Make km_ sources compile:
Link also with libsrdb1
Added prefix km_ to locally included header files.
Align defines protecting header files with filenames.
Remove km_Makefile and km_README.
Integrate functions and parameters from kamailio sources.
Ignore emacs backup and lock files.
Various changes to get rid of conflicts and make km_ files compile.
Fixed matching of db flags names at the beginning of line.
Two small fixes in regular expressions.
Module renamed to db_postgres.
Merged contents of km_Makefile (namely pg_config autodetection).
Removed km_Makefile and km_README.
Updated filenames of locally includede header files
Align defines protecting headers with filenames.
Link with both srdb1 and srdb2
SER to sip-router module conversion script.
Kamailio to sip-router module conversion script.
...
---