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
- * parser helper  functions
3
- *
4
- * Copyright (C) 2001-2003 FhG Fokus
5
- *
6
- * This file is part of Kamailio, a free SIP server.
7
- *
8
- * Kamailio is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version
12
- *
13
- * Kamailio is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License 
19
- * along with this program; if not, write to the Free Software 
20
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21
- *
22
- */
23
-
24
-/** @file
25
- * @brief Parser :: helper functions
26
- *
27
- * @ingroup parser
28
- */
29
-
30
-
31
-#include  "parser_f.h"
32
-#include "../ut.h"
33
-
34
-/** @brief returns pointer to next line or after the end of buffer */
35
-char* eat_line(char* buffer, unsigned int len)
36
-{
37
-	char* nl;
38
-
39
-	/* jku .. replace for search with a library function; not conforming
40
- 		  as I do not care about CR
41
-	*/
42
-	nl=(char *)q_memchr( buffer, '\n', len );
43
-	if ( nl ) { 
44
-		if ( nl + 1 < buffer+len)  nl++;
45
-		if (( nl+1<buffer+len) && * nl=='\r')  nl++;
46
-	} else  nl=buffer+len;
47
-	return nl;
48
-}
49
-
Browse code

core parser - remove svn ID, remove history, change "ser" => "Kamailio"

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

parser: remove old $Id$ docs header from subversion times, not usable anymore

Henning Westerholt authored on 05/07/2012 21:39:51
Showing 1 changed files
... ...
@@ -1,9 +1,6 @@
1 1
 /*
2
- * $Id$
3
- *
4 2
  * parser helper  functions
5 3
  *
6
- *
7 4
  * Copyright (C) 2001-2003 FhG Fokus
8 5
  *
9 6
  * This file is part of ser, a free SIP server.
Browse code

Doxygen changes

oej authored on 25/10/2009 18:30:31
Showing 1 changed files
... ...
@@ -32,11 +32,17 @@
32 32
  * 2003-01-27 next baby-step to removing ZT - PRESERVE_ZT (jiri)
33 33
  */
34 34
 
35
+/** @file
36
+ * @brief Parser :: helper functions
37
+ *
38
+ * @ingroup parser
39
+ */
40
+
35 41
 
36 42
 #include  "parser_f.h"
37 43
 #include "../ut.h"
38 44
 
39
-/* returns pointer to next line or after the end of buffer */
45
+/** @brief returns pointer to next line or after the end of buffer */
40 46
 char* eat_line(char* buffer, unsigned int len)
41 47
 {
42 48
 	char* nl;
Browse code

- Spelling checked

Jan Janak authored on 24/08/2004 09:01:24
Showing 1 changed files
... ...
@@ -4,7 +4,7 @@
4 4
  * parser helper  functions
5 5
  *
6 6
  *
7
- * Copyright (C) 2001-2003 Fhg Fokus
7
+ * Copyright (C) 2001-2003 FhG Fokus
8 8
  *
9 9
  * This file is part of ser, a free SIP server.
10 10
  *
... ...
@@ -41,7 +41,7 @@ char* eat_line(char* buffer, unsigned int len)
41 41
 {
42 42
 	char* nl;
43 43
 
44
-	/* jku .. replace for search with a library function; not conformant
44
+	/* jku .. replace for search with a library function; not conforming
45 45
  		  as I do not care about CR
46 46
 	*/
47 47
 	nl=(char *)q_memchr( buffer, '\n', len );
Browse code

parser changed to make body to point to body (w/o LWS), have a len encompassing the complete hf (name.s..CRLF) and not to put zero- terminators after header field names and cseq

Jiri Kuthan authored on 27/01/2003 21:19:48
Showing 1 changed files
... ...
@@ -26,6 +26,10 @@
26 26
  * You should have received a copy of the GNU General Public License 
27 27
  * along with this program; if not, write to the Free Software 
28 28
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
29
+ *
30
+ * History:
31
+ * ---------
32
+ * 2003-01-27 next baby-step to removing ZT - PRESERVE_ZT (jiri)
29 33
  */
30 34
 
31 35
 
Browse code

- integrated juha's changes to resolve.[ch] (naptr parser & structure) - fixed a bug in resolve.c ( >end instead of >=end in lots of places) - eliminated unused var from parser_f.c - changed ver. no.

Andrei Pelinescu-Onciul authored on 09/12/2002 18:26:13
Showing 1 changed files
... ...
@@ -36,14 +36,12 @@
36 36
 char* eat_line(char* buffer, unsigned int len)
37 37
 {
38 38
 	char* nl;
39
-	char c;
40 39
 
41 40
 	/* jku .. replace for search with a library function; not conformant
42 41
  		  as I do not care about CR
43 42
 	*/
44 43
 	nl=(char *)q_memchr( buffer, '\n', len );
45 44
 	if ( nl ) { 
46
-		c=* nl;
47 45
 		if ( nl + 1 < buffer+len)  nl++;
48 46
 		if (( nl+1<buffer+len) && * nl=='\r')  nl++;
49 47
 	} else  nl=buffer+len;
Browse code

GPLization banner introduced to *.[hc] files

Jiri Kuthan authored on 19/09/2002 12:23:52
Showing 1 changed files
... ...
@@ -3,8 +3,32 @@
3 3
  *
4 4
  * parser helper  functions
5 5
  *
6
+ *
7
+ * Copyright (C) 2001-2003 Fhg Fokus
8
+ *
9
+ * This file is part of ser, a free SIP server.
10
+ *
11
+ * ser 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
+ * For a license to use the ser software under conditions
17
+ * other than those described here, or to purchase support for this
18
+ * software, please contact iptel.org by e-mail at the following addresses:
19
+ *    info@iptel.org
20
+ *
21
+ * ser is distributed in the hope that it will be useful,
22
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
23
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24
+ * GNU General Public License for more details.
25
+ *
26
+ * You should have received a copy of the GNU General Public License 
27
+ * along with this program; if not, write to the Free Software 
28
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
6 29
  */
7 30
 
31
+
8 32
 #include  "parser_f.h"
9 33
 #include "../ut.h"
10 34
 
Browse code

TM callbacks, acc, flags

Jiri Kuthan authored on 13/05/2002 01:15:40
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,28 @@
1
+/*
2
+ * $Id$
3
+ *
4
+ * parser helper  functions
5
+ *
6
+ */
7
+
8
+#include  "parser_f.h"
9
+#include "../ut.h"
10
+
11
+/* returns pointer to next line or after the end of buffer */
12
+char* eat_line(char* buffer, unsigned int len)
13
+{
14
+	char* nl;
15
+	char c;
16
+
17
+	/* jku .. replace for search with a library function; not conformant
18
+ 		  as I do not care about CR
19
+	*/
20
+	nl=(char *)q_memchr( buffer, '\n', len );
21
+	if ( nl ) { 
22
+		c=* nl;
23
+		if ( nl + 1 < buffer+len)  nl++;
24
+		if (( nl+1<buffer+len) && * nl=='\r')  nl++;
25
+	} else  nl=buffer+len;
26
+	return nl;
27
+}
28
+