Module: sip-router
Branch: janakj/flatstore
Commit: 5269c8d891516498d10ea630ad872bb5d306cf60
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5269c8d…
Author: Henning Westerholt <henning.westerholt(a)1und1.de>
Committer: Henning Westerholt <henning.westerholt(a)1und1.de>
Date: Wed Feb 27 13:53:33 2008 +0000
- first round of cleanups for documentation
- remove all FAQ and DEVEL files considered empty in content (no content at all
or just the default lines)
- remove of the <RevHistory>/</RevHistory> tag (and of course anything between
them)
- remove the comments at the end of the file that begins with
"<!-- Keep this element at the end of the file"
- credits for the patch/ the change scripts goes to Edson Gellert Schubert,
4lists at gmail dot com
git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@3769 689a6050-402a-0410-94f2-e92a70836424
---
.../db_flatstore/km_doc/db_flatstore_devel.sgml | 11 ---
modules/db_flatstore/km_doc/db_flatstore_faq.sgml | 70 --------------------
modules/db_flatstore/km_doc/db_flatstore_user.sgml | 11 ---
3 files changed, 0 insertions(+), 92 deletions(-)
diff --git a/modules/db_flatstore/km_doc/db_flatstore_devel.sgml b/modules/db_flatstore/km_doc/db_flatstore_devel.sgml
index f1afc53..cf299a2 100644
--- a/modules/db_flatstore/km_doc/db_flatstore_devel.sgml
+++ b/modules/db_flatstore/km_doc/db_flatstore_devel.sgml
@@ -2,12 +2,6 @@
<chapter>
<chapterinfo>
- <revhistory>
- <revision>
- <revnumber>$Revision$</revnumber>
- <date>$Date$</date>
- </revision>
- </revhistory>
</chapterinfo>
<title>Developer's Guide</title>
<para>
@@ -15,8 +9,3 @@
</para>
</chapter>
-<!-- Keep this element at the end of the file
-Local Variables:
-sgml-parent-document: ("db_flatstore.sgml" "book" "chapter")
-End:
--->
diff --git a/modules/db_flatstore/km_doc/db_flatstore_faq.sgml b/modules/db_flatstore/km_doc/db_flatstore_faq.sgml
deleted file mode 100644
index bc8e5b9..0000000
--- a/modules/db_flatstore/km_doc/db_flatstore_faq.sgml
+++ /dev/null
@@ -1,70 +0,0 @@
-<!-- Module FAQ -->
-
-<chapter>
- <chapterinfo>
- <revhistory>
- <revision>
- <revnumber>$Revision$</revnumber>
- <date>$Date$</date>
- </revision>
- </revhistory>
- </chapterinfo>
- <title>Frequently Asked Questions</title>
- <qandaset defaultlabel="number">
- <qandaentry>
- <question>
- <para>Where can I find more about OpenSER?</para>
- </question>
- <answer>
- <para>
- Take a look at &serhomelink;.
- </para>
- </answer>
- </qandaentry>
- <qandaentry>
- <question>
- <para>Where can I post a question about this module?</para>
- </question>
- <answer>
- <para>
- First at all check if your question was already answered on one of
- our mailing lists:
- </para>
- <itemizedlist>
- <listitem>
- <para>User Mailing List - &seruserslink;</para>
- </listitem>
- <listitem>
- <para>Developer Mailing List - &serdevlink;</para>
- </listitem>
- </itemizedlist>
- <para>
- E-mails regarding any stable &ser; release should be sent to
- &serusersmail; and e-mails regarding development versions
- should be sent to &serdevmail;.
- </para>
- <para>
- If you want to keep the mail private, send it to
- &serhelpmail;.
- </para>
- </answer>
- </qandaentry>
- <qandaentry>
- <question>
- <para>How can I report a bug?</para>
- </question>
- <answer>
- <para>
- Please follow the guidelines provided at:
- &serbugslink;.
- </para>
- </answer>
- </qandaentry>
- </qandaset>
-</chapter>
-
-<!-- Keep this element at the end of the file
-Local Variables:
-sgml-parent-document: ("db_flatstore.sgml" "Book" "chapter")
-End:
--->
diff --git a/modules/db_flatstore/km_doc/db_flatstore_user.sgml b/modules/db_flatstore/km_doc/db_flatstore_user.sgml
index 6043f35..a72a07a 100644
--- a/modules/db_flatstore/km_doc/db_flatstore_user.sgml
+++ b/modules/db_flatstore/km_doc/db_flatstore_user.sgml
@@ -2,12 +2,6 @@
<chapter>
<chapterinfo>
- <revhistory>
- <revision>
- <revnumber>$Revision$</revnumber>
- <date>$Date$</date>
- </revision>
- </revhistory>
</chapterinfo>
<title>User's Guide</title>
@@ -199,8 +193,3 @@ modparam("db_flatstore", "flush", 0)
</section>
</chapter>
-<!-- Keep this element at the end of the file
-Local Variables:
-sgml-parent-document: ("db_flatstore.sgml" "Book" "chapter")
-End:
--->
Module: sip-router
Branch: janakj/postgres
Commit: f0546a246d0098405b61a64ca0fbaf32bbb5373f
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f0546a2…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Wed Feb 18 14:32:18 2009 +0100
Integrate functions and parameters from kamailio sources.
This patch adds db_bind_api function from kamailio sources to the list
of exported functions. Also we call the mod_init function from kamailio
sources at the and of the mod_init function in pg_mod.c. To make this
possible I added a new header file and removed static from the mod_init
function declaration.
---
modules/db_postgres/km_db_postgres.c | 9 ++-----
modules/db_postgres/km_db_postgres.h | 39 ++++++++++++++++++++++++++++++++++
modules/db_postgres/pg_mod.c | 4 ++-
3 files changed, 45 insertions(+), 7 deletions(-)
diff --git a/modules/db_postgres/km_db_postgres.c b/modules/db_postgres/km_db_postgres.c
index c3df575..ffe9230 100644
--- a/modules/db_postgres/km_db_postgres.c
+++ b/modules/db_postgres/km_db_postgres.c
@@ -38,14 +38,11 @@
#include "../../lib/srdb1/db_con.h"
#include "../../lib/srdb1/db.h"
#include "km_dbase.h"
+#include "km_db_postgres.h"
/*MODULE_VERSION*/
-int db_postgres_bind_api(db_func_t *dbb);
-
-static int mod_init(void);
-
/*
* PostgreSQL database module interface
*/
@@ -66,14 +63,14 @@ struct kam_module_exports kam_exports = {
0, /* exported MI functions */
0, /* exported pseudo-variables */
0, /* extra processes */
- mod_init, /* module initialization function */
+ km_postgres_mod_init, /* module initialization function */
0, /* response function*/
0, /* destroy function */
0 /* per-child init function */
};
-static int mod_init(void)
+int km_postgres_mod_init(void)
{
return 0;
}
diff --git a/modules/db_postgres/km_db_postgres.h b/modules/db_postgres/km_db_postgres.h
new file mode 100644
index 0000000..8959417
--- /dev/null
+++ b/modules/db_postgres/km_db_postgres.h
@@ -0,0 +1,39 @@
+/*
+ * $Id$
+ *
+ * Copyright (C) 2001-2003 FhG Fokus
+ * Copyright (C) 2008 1&1 Internet AG
+ *
+ * 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
+ */
+
+/*! \file
+ * \brief DB_POSTGRES :: Core
+ * \ingroup db_postgres
+ * Module: \ref db_postgres
+ */
+
+#ifndef _KM_DB_POSTGRES_H
+#define _KM_DB_POSTGRES_H
+
+#include "../../lib/srdb1/db.h"
+
+int db_postgres_bind_api(db_func_t *dbb);
+
+int km_postgres_mod_init(void);
+
+#endif /* _KM_DB_POSTGRES_H */
diff --git a/modules/db_postgres/pg_mod.c b/modules/db_postgres/pg_mod.c
index 1bc4ad4..3c1e2d9 100644
--- a/modules/db_postgres/pg_mod.c
+++ b/modules/db_postgres/pg_mod.c
@@ -42,6 +42,7 @@
#include "pg_cmd.h"
#include "pg_res.h"
#include "pg_fld.h"
+#include "km_db_postgres.h"
#include "../../sr_module.h"
@@ -77,6 +78,7 @@ static cmd_export_t cmds[] = {
{"db_next", (cmd_function)pg_cmd_next, 0, 0, 0},
{"db_setopt", (cmd_function)pg_setopt, 0, 0, 0},
{"db_getopt", (cmd_function)pg_getopt, 0, 0, 0},
+ {"db_bind_api", (cmd_function)db_postgres_bind_api, 0, 0, 0},
{0, 0, 0, 0, 0}
};
@@ -538,7 +540,7 @@ static int pg_mod_init(void)
}
return -1;
#endif /* PG_TEST */
- return 0;
+ return km_postgres_mod_init();
}
/** @} */
Module: sip-router
Branch: janakj/postgres
Commit: f7cc8a190ae22ae3f99e2ceaa6f609061e281d8d
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f7cc8a1…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Wed Feb 18 01:10:10 2009 +0100
Merge branch 'master' of ssh://janakj@git.sip-router.org/sip-router into postgres
* 'master' of ssh://janakj@git.sip-router.org/sip-router:
Fixed matching of db flags names at the beginning of line.
Two small fixes in regular expressions.
---
Module: sip-router
Branch: janakj/postgres
Commit: a7bac3b9ab8829dcb2cd933cf3302adaf8f81cfa
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a7bac3b…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Wed Feb 18 01:22:22 2009 +0100
Various changes to get rid of conflicts and make km_ files compile.
List of changes:
* Path to header files updated to point to lib/srdb1
* Comment out MODULE_VERSION (already used pg_mod.c)
* cmd_export_t renamed to kam_cmd_export_t
* exports structure renamed to kam_exports (exports symbol is already
defined by pg_mod.c)
* module_exports renamed to kam_module_exports
* db_con_t renamed to db1_con_t
* db_res_t renamed to db1_res_t
* DB field types renamed to DB1_*
---
modules/db_postgres/km_db_postgres.c | 10 +++---
modules/db_postgres/km_dbase.c | 42 +++++++++++++++---------------
modules/db_postgres/km_dbase.h | 34 ++++++++++++------------
modules/db_postgres/km_pg_con.h | 4 +-
modules/db_postgres/km_res.c | 48 +++++++++++++++++-----------------
modules/db_postgres/km_res.h | 10 +++---
modules/db_postgres/km_val.c | 16 +++++-----
modules/db_postgres/km_val.h | 2 +-
8 files changed, 83 insertions(+), 83 deletions(-)
Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=a7b…