Browse code

core, lib, modules: restructured source code tree

- new folder src/ to hold the source code for main project applications
- main.c is in src/
- all core files are subfolder are in src/core/
- modules are in src/modules/
- libs are in src/lib/
- application Makefiles are in src/
- application binary is built in src/ (src/kamailio)

Daniel-Constantin Mierla authored on 07/12/2016 11:03:51
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,49 +0,0 @@
1
-/* 
2
- * MySQL module row related functions
3
- *
4
- * Copyright (C) 2001-2003 FhG Fokus
5
- * Copyright (C) 2008 1&1 Internet AG
6
- *
7
- * This file is part of Kamailio, a free SIP server.
8
- *
9
- * Kamailio is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License as published by
11
- * the Free Software Foundation; either version 2 of the License, or
12
- * (at your option) any later version
13
- *
14
- * Kamailio is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
- * GNU General Public License for more details.
18
- *
19
- * You should have received a copy of the GNU General Public License 
20
- * along with this program; if not, write to the Free Software 
21
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
22
- */
23
-
24
-/*! \file
25
- *  \brief DB_MYSQL :: Row related functions
26
- *  \ref row.c
27
- *  \ingroup db_mysql
28
- *  Module: \ref db_mysql
29
- */
30
-
31
-
32
-#ifndef KM_ROW_H
33
-#define KM_ROW_H
34
-
35
-#include "../../lib/srdb1/db_con.h"
36
-#include "../../lib/srdb1/db_res.h"
37
-#include "../../lib/srdb1/db_row.h"
38
-
39
-
40
-/*!
41
- * \brief Convert a row from result into DB API representation
42
- * \param _h database connection
43
- * \param _res database result in the DB API representation
44
- * \param _r database result row
45
- * \return 0 on success, -1 on failure
46
- */
47
-int db_mysql_convert_row(const db1_con_t* _h, db1_res_t* _res, db_row_t* _r);
48
-
49
-#endif
Browse code

db_mysql: Remove SVN ID's, remove history sections

Olle E. Johansson authored on 11/03/2015 15:26:21
Showing 1 changed files
... ...
@@ -1,6 +1,4 @@
1 1
 /* 
2
- * $Id$ 
3
- *
4 2
  * MySQL module row related functions
5 3
  *
6 4
  * Copyright (C) 2001-2003 FhG Fokus
Browse code

all: updated FSF address in GPL text

Anthony Messina authored on 04/07/2014 09:36:37 • Daniel-Constantin Mierla committed on 04/07/2014 09:37:36
Showing 1 changed files
... ...
@@ -20,7 +20,7 @@
20 20
  *
21 21
  * You should have received a copy of the GNU General Public License 
22 22
  * along with this program; if not, write to the Free Software 
23
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
24 24
  */
25 25
 
26 26
 /*! \file
Browse code

db_res renamed to db1_res in files originating from kamailio/db_mysql.

The structure db_res has been renamed in lib/srdb1 to db1_res, thus we need to
change the name of the structure in all files originating from
kamailio/modules/db_mysql (and using lib/srdb1).

Jan Janak authored on 16/02/2009 22:13:16
Showing 1 changed files
... ...
@@ -46,6 +46,6 @@
46 46
  * \param _r database result row
47 47
  * \return 0 on success, -1 on failure
48 48
  */
49
-int db_mysql_convert_row(const db1_con_t* _h, db_res_t* _res, db_row_t* _r);
49
+int db_mysql_convert_row(const db1_con_t* _h, db1_res_t* _res, db_row_t* _r);
50 50
 
51 51
 #endif
Browse code

db_con renamed to db1_con in files originating from kamailio/db_mysql.

The structure db_con has been renamed in lib/srdb1 to db1_con, thus we
need to change the name of the structure in all files originating from
kamailio/modules/db_mysql (and using lib/srdb1).

Jan Janak authored on 16/02/2009 22:09:32
Showing 1 changed files
... ...
@@ -46,6 +46,6 @@
46 46
  * \param _r database result row
47 47
  * \return 0 on success, -1 on failure
48 48
  */
49
-int db_mysql_convert_row(const db_con_t* _h, db_res_t* _res, db_row_t* _r);
49
+int db_mysql_convert_row(const db1_con_t* _h, db_res_t* _res, db_row_t* _r);
50 50
 
51 51
 #endif
Browse code

Integration of both modules, first step.

* Defines protecting header files from double inclusion fixed to match
filenames.
* Linked the module also with srdb1
* Fixed path to header files in lib/srdb1.
* Filenames of local included header files prefixed with km_ to match
their real filenames

Jan Janak authored on 16/02/2009 21:58:33
Showing 1 changed files
... ...
@@ -31,12 +31,12 @@
31 31
  */
32 32
 
33 33
 
34
-#ifndef ROW_H
35
-#define ROW_H
34
+#ifndef KM_ROW_H
35
+#define KM_ROW_H
36 36
 
37
-#include "../../db/db_con.h"
38
-#include "../../db/db_res.h"
39
-#include "../../db/db_row.h"
37
+#include "../../lib/srdb1/db_con.h"
38
+#include "../../lib/srdb1/db_res.h"
39
+#include "../../lib/srdb1/db_row.h"
40 40
 
41 41
 
42 42
 /*!
Browse code

- fix a few errors in doxygen documentation - sync one function definitions variables with declaration

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@5254 689a6050-402a-0410-94f2-e92a70836424

Henning Westerholt authored on 25/11/2008 09:34:15
Showing 1 changed files
... ...
@@ -39,9 +39,13 @@
39 39
 #include "../../db/db_row.h"
40 40
 
41 41
 
42
-/**
43
- * Convert a row from result into db API representation
42
+/*!
43
+ * \brief Convert a row from result into DB API representation
44
+ * \param _h database connection
45
+ * \param _res database result in the DB API representation
46
+ * \param _r database result row
47
+ * \return 0 on success, -1 on failure
44 48
  */
45 49
 int db_mysql_convert_row(const db_con_t* _h, db_res_t* _res, db_row_t* _r);
46 50
 
47
-#endif /* ROW_H */
51
+#endif
Browse code

- change name in copyright headers

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@4518 689a6050-402a-0410-94f2-e92a70836424

Henning Westerholt authored on 28/07/2008 15:39:28
Showing 1 changed files
... ...
@@ -6,14 +6,14 @@
6 6
  * Copyright (C) 2001-2003 FhG Fokus
7 7
  * Copyright (C) 2008 1&1 Internet AG
8 8
  *
9
- * This file is part of openser, a free SIP server.
9
+ * This file is part of Kamailio, a free SIP server.
10 10
  *
11
- * openser is free software; you can redistribute it and/or modify
11
+ * Kamailio is free software; you can redistribute it and/or modify
12 12
  * it under the terms of the GNU General Public License as published by
13 13
  * the Free Software Foundation; either version 2 of the License, or
14 14
  * (at your option) any later version
15 15
  *
16
- * openser is distributed in the hope that it will be useful,
16
+ * Kamailio is distributed in the hope that it will be useful,
17 17
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 18
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 19
  * GNU General Public License for more details.
Browse code

- small doxygen updates (group, syntax), small docs update - patch provided from Olle E. Johansson, closes #2025079

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@4505 689a6050-402a-0410-94f2-e92a70836424

Henning Westerholt authored on 24/07/2008 15:20:11
Showing 1 changed files
... ...
@@ -23,6 +23,14 @@
23 23
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
24 24
  */
25 25
 
26
+/*! \file
27
+ *  \brief DB_MYSQL :: Row related functions
28
+ *  \ref row.c
29
+ *  \ingroup db_mysql
30
+ *  Module: \ref db_mysql
31
+ */
32
+
33
+
26 34
 #ifndef ROW_H
27 35
 #define ROW_H
28 36
 
Browse code

- convert existing documentation to doxygen format - add some comments, some smaller cleanups - small adjustment of the fetch_result function to the postgres one, add one DBG message, renames a parameter

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@4124 689a6050-402a-0410-94f2-e92a70836424

Henning Westerholt authored on 07/05/2008 16:36:48
Showing 1 changed files
... ...
@@ -31,7 +31,7 @@
31 31
 #include "../../db/db_row.h"
32 32
 
33 33
 
34
-/*
34
+/**
35 35
  * Convert a row from result into db API representation
36 36
  */
37 37
 int db_mysql_convert_row(const db_con_t* _h, db_res_t* _res, db_row_t* _r);
Browse code

- rename database modules to use the 'db_' prefix

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@3638 689a6050-402a-0410-94f2-e92a70836424

Henning Westerholt authored on 06/02/2008 13:10:03
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,39 @@
1
+/* 
2
+ * $Id$ 
3
+ *
4
+ * MySQL module row related functions
5
+ *
6
+ * Copyright (C) 2001-2003 FhG Fokus
7
+ * Copyright (C) 2008 1&1 Internet AG
8
+ *
9
+ * This file is part of openser, a free SIP server.
10
+ *
11
+ * openser is free software; you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation; either version 2 of the License, or
14
+ * (at your option) any later version
15
+ *
16
+ * openser is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License 
22
+ * along with this program; if not, write to the Free Software 
23
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
24
+ */
25
+
26
+#ifndef ROW_H
27
+#define ROW_H
28
+
29
+#include "../../db/db_con.h"
30
+#include "../../db/db_res.h"
31
+#include "../../db/db_row.h"
32
+
33
+
34
+/*
35
+ * Convert a row from result into db API representation
36
+ */
37
+int db_mysql_convert_row(const db_con_t* _h, db_res_t* _res, db_row_t* _r);
38
+
39
+#endif /* ROW_H */