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,60 +0,0 @@
1
-/*
2
- * Copyright (C) 2001-2003 FhG Fokus
3
- *
4
- * This file is part of Kamailio, a free SIP server.
5
- *
6
- * Kamailio is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version
10
- *
11
- * Kamailio is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License 
17
- * along with this program; if not, write to the Free Software 
18
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19
- */
20
-
21
-/**
22
- * @file 
23
- * @brief Kamailio core :: Simple str type list and helper functions
24
- * @ingroup core
25
- * Module: @ref core
26
- */
27
-
28
-#include "str.h"
29
-#include "mem/mem.h"
30
-#include "str_list.h"
31
-
32
-
33
-/**
34
- * @brief Add a new allocated list element to an existing list
35
- * 
36
- * Add a new allocated list element to an existing list, the allocation is done
37
- * from the private memory pool
38
- * @param s input character
39
- * @param len length of input character
40
- * @param last existing list
41
- * @param total length of total characters in list
42
- * @return extended list
43
- */
44
-struct str_list *append_str_list(char *s, int len, struct str_list **last, int *total)
45
-{
46
-	struct str_list *new;
47
-	new = pkg_malloc(sizeof(struct str_list));
48
-	if (!new) {
49
-		PKG_MEM_ERROR;
50
-		return 0;
51
-	}
52
-	new->s.s = s;
53
-	new->s.len = len;
54
-	new->next = 0;
55
-
56
-	(*last)->next = new;
57
-	*last = new;
58
-	*total += len;
59
-	return new;
60
-}
Browse code

Core Removed history, svn $id$ and doxygen udpates on the .c files

Olle E. Johansson authored on 03/01/2015 09:53:17
Showing 1 changed files
... ...
@@ -1,14 +1,14 @@
1 1
 /*
2 2
  * Copyright (C) 2001-2003 FhG Fokus
3 3
  *
4
- * This file is part of sip-router, a free SIP server.
4
+ * This file is part of Kamailio, a free SIP server.
5 5
  *
6
- * sip-router is free software; you can redistribute it and/or modify
6
+ * Kamailio is free software; you can redistribute it and/or modify
7 7
  * it under the terms of the GNU General Public License as published by
8 8
  * the Free Software Foundation; either version 2 of the License, or
9 9
  * (at your option) any later version
10 10
  *
11
- * sip-router is distributed in the hope that it will be useful,
11
+ * Kamailio is distributed in the hope that it will be useful,
12 12
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 13
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 14
  * GNU General Public License for more details.
... ...
@@ -20,10 +20,11 @@
20 20
 
21 21
 /**
22 22
  * @file 
23
- * @brief Simple str type list and helper functions
23
+ * @brief Kamailio core :: Simple str type list and helper functions
24
+ * @ingroup core
25
+ * Module: @ref core
24 26
  */
25 27
 
26
-
27 28
 #include "str.h"
28 29
 #include "mem/mem.h"
29 30
 #include "str_list.h"
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
... ...
@@ -15,7 +15,7 @@
15 15
  *
16 16
  * You should have received a copy of the GNU General Public License 
17 17
  * along with this program; if not, write to the Free Software 
18
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19 19
  */
20 20
 
21 21
 /**
Browse code

core: move redundant and identical implementation of a str_list type to core

- move redundant str_list and new_str implementations from tm and tmx to core
- rename new_str to a more descriptive append_str_list, no interface changes
- fix callers in tm and tmx
- add doxygen documentation

Henning Westerholt authored on 05/07/2011 21:38:13
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,59 @@
1
+/*
2
+ * Copyright (C) 2001-2003 FhG Fokus
3
+ *
4
+ * This file is part of sip-router, a free SIP server.
5
+ *
6
+ * sip-router is free software; you can redistribute it and/or modify
7
+ * it under the terms of the GNU General Public License as published by
8
+ * the Free Software Foundation; either version 2 of the License, or
9
+ * (at your option) any later version
10
+ *
11
+ * sip-router is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
+ * GNU General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU General Public License 
17
+ * along with this program; if not, write to the Free Software 
18
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
+ */
20
+
21
+/**
22
+ * @file 
23
+ * @brief Simple str type list and helper functions
24
+ */
25
+
26
+
27
+#include "str.h"
28
+#include "mem/mem.h"
29
+#include "str_list.h"
30
+
31
+
32
+/**
33
+ * @brief Add a new allocated list element to an existing list
34
+ * 
35
+ * Add a new allocated list element to an existing list, the allocation is done
36
+ * from the private memory pool
37
+ * @param s input character
38
+ * @param len length of input character
39
+ * @param last existing list
40
+ * @param total length of total characters in list
41
+ * @return extended list
42
+ */
43
+struct str_list *append_str_list(char *s, int len, struct str_list **last, int *total)
44
+{
45
+	struct str_list *new;
46
+	new = pkg_malloc(sizeof(struct str_list));
47
+	if (!new) {
48
+		PKG_MEM_ERROR;
49
+		return 0;
50
+	}
51
+	new->s.s = s;
52
+	new->s.len = len;
53
+	new->next = 0;
54
+
55
+	(*last)->next = new;
56
+	*last = new;
57
+	*total += len;
58
+	return new;
59
+}