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,47 +0,0 @@
1
-/* 
2
- * Copyright (C) 2001-2003 FhG Fokus
3
- * Copyright (C) 2006-2007 iptelorg GmbH
4
- *
5
- * This file is part of Kamailio, a free SIP server.
6
- *
7
- * Kamailio is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by
9
- * the Free Software Foundation; either version 2 of the License, or
10
- * (at your option) any later version
11
- *
12
- * Kamailio is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
- * GNU General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU General Public License 
18
- * along with this program; if not, write to the Free Software 
19
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
20
- */
21
-
22
-#ifndef _MY_FLD_H
23
-#define _MY_FLD_H  1
24
-
25
-/** @addtogroup mysql
26
- *  @{
27
- */
28
-
29
-#include "../../lib/srdb2/db_drv.h"
30
-#include "../../lib/srdb2/db_fld.h"
31
-#include <mysql.h>
32
-
33
-struct my_fld {
34
-	db_drv_t gen;
35
-
36
-	char* name;
37
-	my_bool is_null;
38
-	MYSQL_TIME time;
39
-	unsigned long length;
40
-	str buf;
41
-};
42
-
43
-int my_fld(db_fld_t* fld, char* table);
44
-
45
-/** @} */
46
-
47
-#endif /* _MY_FLD_H */
Browse code

db_mysql: updated include paths for libmysqlclient

- direct use of mysql_config, the old substitution done in module
Makefile can break the includes of libmysqlclient files
- reported by Ian Yu-Hsun Lin, GH#419

Daniel-Constantin Mierla authored on 26/11/2015 23:03:26
Showing 1 changed files
... ...
@@ -28,7 +28,7 @@
28 28
 
29 29
 #include "../../lib/srdb2/db_drv.h"
30 30
 #include "../../lib/srdb2/db_fld.h"
31
-#include <mysql/mysql.h>
31
+#include <mysql.h>
32 32
 
33 33
 struct my_fld {
34 34
 	db_drv_t gen;
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,22 +1,15 @@
1 1
 /* 
2
- * $Id$
3
- *
4 2
  * Copyright (C) 2001-2003 FhG Fokus
5 3
  * Copyright (C) 2006-2007 iptelorg GmbH
6 4
  *
7
- * This file is part of ser, a free SIP server.
5
+ * This file is part of Kamailio, a free SIP server.
8 6
  *
9
- * ser is free software; you can redistribute it and/or modify
7
+ * Kamailio is free software; you can redistribute it and/or modify
10 8
  * it under the terms of the GNU General Public License as published by
11 9
  * the Free Software Foundation; either version 2 of the License, or
12 10
  * (at your option) any later version
13 11
  *
14
- * For a license to use the ser software under conditions
15
- * other than those described here, or to purchase support for this
16
- * software, please contact iptel.org by e-mail at the following addresses:
17
- *    info@iptel.org
18
- *
19
- * ser is distributed in the hope that it will be useful,
12
+ * Kamailio is distributed in the hope that it will be useful,
20 13
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 14
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22 15
  * GNU General Public License for more details.
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
... ...
@@ -23,7 +23,7 @@
23 23
  *
24 24
  * You should have received a copy of the GNU General Public License 
25 25
  * along with this program; if not, write to the Free Software 
26
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
27 27
  */
28 28
 
29 29
 #ifndef _MY_FLD_H
Browse code

Changes necessary to make the module compile in the sip-router tree.

This is a set of changes necessary to make the LDAP module compile in the
sip-router tree. This includes:
* Extra stuff in the Makefile to link with libsrdb2
* Defined SER_MOD_INTERFACE in the makefile
* Updated relative paths to srdb2 header files

Jan Janak authored on 13/02/2009 00:51:33
Showing 1 changed files
... ...
@@ -33,8 +33,8 @@
33 33
  *  @{
34 34
  */
35 35
 
36
-#include "../../db/db_drv.h"
37
-#include "../../db/db_fld.h"
36
+#include "../../lib/srdb2/db_drv.h"
37
+#include "../../lib/srdb2/db_fld.h"
38 38
 #include <mysql/mysql.h>
39 39
 
40 40
 struct my_fld {
Browse code

- a couple of minor bug fixes backported from internal verion - support for "fake NULL" values (strings or integers that will be written in database if the value is NULL) (compile time option) - proper support for raw SQL statements - the possibility to retrieve fields in the result set and their types from the server added (needed for queries like select *).

Jan Janak authored on 15/11/2007 17:27:06
Showing 1 changed files
... ...
@@ -40,6 +40,7 @@
40 40
 struct my_fld {
41 41
 	db_drv_t gen;
42 42
 
43
+	char* name;
43 44
 	my_bool is_null;
44 45
 	MYSQL_TIME time;
45 46
 	unsigned long length;
Browse code

added doxygen comment to deal with these files

Libor Chocholaty authored on 03/07/2007 15:16:14
Showing 1 changed files
... ...
@@ -29,6 +29,10 @@
29 29
 #ifndef _MY_FLD_H
30 30
 #define _MY_FLD_H  1
31 31
 
32
+/** @addtogroup mysql
33
+ *  @{
34
+ */
35
+
32 36
 #include "../../db/db_drv.h"
33 37
 #include "../../db/db_fld.h"
34 38
 #include <mysql/mysql.h>
... ...
@@ -44,4 +48,6 @@ struct my_fld {
44 48
 
45 49
 int my_fld(db_fld_t* fld, char* table);
46 50
 
51
+/** @} */
52
+
47 53
 #endif /* _MY_FLD_H */
Browse code

- db_fld.v.str renamed to db_fld.v.lstr due to problems with g++

Jan Janak authored on 18/04/2007 13:08:45
Showing 1 changed files
... ...
@@ -42,6 +42,6 @@ struct my_fld {
42 42
 	str buf;
43 43
 };
44 44
 
45
-int my_fld(db_fld_t* fld);
45
+int my_fld(db_fld_t* fld, char* table);
46 46
 
47 47
 #endif /* _MY_FLD_H */
Browse code

- mysql module updated to new db api

Jan Janak authored on 04/04/2007 11:48:20
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,47 @@
1
+/* 
2
+ * $Id$
3
+ *
4
+ * Copyright (C) 2001-2003 FhG Fokus
5
+ * Copyright (C) 2006-2007 iptelorg GmbH
6
+ *
7
+ * This file is part of ser, a free SIP server.
8
+ *
9
+ * ser 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
+ * For a license to use the ser software under conditions
15
+ * other than those described here, or to purchase support for this
16
+ * software, please contact iptel.org by e-mail at the following addresses:
17
+ *    info@iptel.org
18
+ *
19
+ * ser is distributed in the hope that it will be useful,
20
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
+ * GNU General Public License for more details.
23
+ *
24
+ * You should have received a copy of the GNU General Public License 
25
+ * along with this program; if not, write to the Free Software 
26
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27
+ */
28
+
29
+#ifndef _MY_FLD_H
30
+#define _MY_FLD_H  1
31
+
32
+#include "../../db/db_drv.h"
33
+#include "../../db/db_fld.h"
34
+#include <mysql/mysql.h>
35
+
36
+struct my_fld {
37
+	db_drv_t gen;
38
+
39
+	my_bool is_null;
40
+	MYSQL_TIME time;
41
+	unsigned long length;
42
+	str buf;
43
+};
44
+
45
+int my_fld(db_fld_t* fld);
46
+
47
+#endif /* _MY_FLD_H */