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,63 +0,0 @@
1
-/*
2
- * Expires header field body parser
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
-/*! \file
24
- * \brief Parser :: Expires header field body parser
25
- *
26
- * \ingroup parser
27
- */
28
-
29
-
30
-
31
-#ifndef PARSE_EXPIRES_H
32
-#define PARSE_EXPIRES_H
33
-
34
-#include "../str.h"
35
-#include "hf.h"
36
-
37
-
38
-typedef struct exp_body {
39
-	str text;            /*!< Original text representation */
40
-	unsigned char valid; /*!< Was parsing successful ? */
41
-	unsigned int val;    /*!< Parsed value */
42
-} exp_body_t;
43
-
44
-
45
-/*! \brief
46
- * Parse expires header field body
47
- */
48
-int parse_expires(struct hdr_field* _h);
49
-
50
-
51
-/*! \brief
52
- * Free all memory associated with exp_body_t
53
- */
54
-void free_expires(exp_body_t** _e);
55
-
56
-
57
-/*! \brief
58
- * Print exp_body_t content, for debugging only
59
- */
60
-void print_expires(exp_body_t* _e);
61
-
62
-
63
-#endif /* PARSE_EXPIRES_H */
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,14 +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
- * ser is distributed in the hope that it will be useful,
13
+ * Kamailio is distributed in the hope that it will be useful,
14 14
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 15
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 16
  * 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
... ...
@@ -17,7 +17,7 @@
17 17
  *
18 18
  * You should have received a copy of the GNU General Public License 
19 19
  * along with this program; if not, write to the Free Software 
20
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21 21
  */
22 22
 
23 23
 /*! \file
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,6 +1,4 @@
1 1
 /*
2
- * $Id$
3
- *
4 2
  * Expires header field body parser
5 3
  *
6 4
  * Copyright (C) 2001-2003 FhG Fokus
Browse code

More parser/ doxygen changes

oej authored on 25/10/2009 17:26:46
Showing 1 changed files
... ...
@@ -12,11 +12,6 @@
12 12
  * the Free Software Foundation; either version 2 of the License, or
13 13
  * (at your option) any later version
14 14
  *
15
- * For a license to use the ser software under conditions
16
- * other than those described here, or to purchase support for this
17
- * software, please contact iptel.org by e-mail at the following addresses:
18
- *    info@iptel.org
19
- *
20 15
  * ser is distributed in the hope that it will be useful,
21 16
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 17
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
... ...
@@ -27,6 +22,13 @@
27 22
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28 23
  */
29 24
 
25
+/*! \file
26
+ * \brief Parser :: Expires header field body parser
27
+ *
28
+ * \ingroup parser
29
+ */
30
+
31
+
30 32
 
31 33
 #ifndef PARSE_EXPIRES_H
32 34
 #define PARSE_EXPIRES_H
... ...
@@ -36,25 +38,25 @@
36 38
 
37 39
 
38 40
 typedef struct exp_body {
39
-	str text;            /* Original text representation */
40
-	unsigned char valid; /* Was parsing successful ? */
41
-	unsigned int val;    /* Parsed value */
41
+	str text;            /*!< Original text representation */
42
+	unsigned char valid; /*!< Was parsing successful ? */
43
+	unsigned int val;    /*!< Parsed value */
42 44
 } exp_body_t;
43 45
 
44 46
 
45
-/*
47
+/*! \brief
46 48
  * Parse expires header field body
47 49
  */
48 50
 int parse_expires(struct hdr_field* _h);
49 51
 
50 52
 
51
-/*
53
+/*! \brief
52 54
  * Free all memory associated with exp_body_t
53 55
  */
54 56
 void free_expires(exp_body_t** _e);
55 57
 
56 58
 
57
-/*
59
+/*! \brief
58 60
  * Print exp_body_t content, for debugging only
59 61
  */
60 62
 void print_expires(exp_body_t* _e);
Browse code

- parsed expires value is unsinged as negative values are not allowed - more then 10 characters cant be a valid expires value - set the value length before checking it to avoid incorrect length for invalid values

Nils Ohlmeier authored on 01/02/2006 16:08:15
Showing 1 changed files
... ...
@@ -38,7 +38,7 @@
38 38
 typedef struct exp_body {
39 39
 	str text;            /* Original text representation */
40 40
 	unsigned char valid; /* Was parsing successful ? */
41
-	int val;             /* Parsed value */
41
+	unsigned int val;    /* Parsed value */
42 42
 } exp_body_t;
43 43
 
44 44
 
Browse code

- Spelling checked

Jan Janak authored on 24/08/2004 09:01:24
Showing 1 changed files
... ...
@@ -3,7 +3,7 @@
3 3
  *
4 4
  * Expires header field body parser
5 5
  *
6
- * Copyright (C) 2001-2003 Fhg Fokus
6
+ * Copyright (C) 2001-2003 FhG Fokus
7 7
  *
8 8
  * This file is part of ser, a free SIP server.
9 9
  *
... ...
@@ -37,7 +37,7 @@
37 37
 
38 38
 typedef struct exp_body {
39 39
 	str text;            /* Original text representation */
40
-	unsigned char valid; /* Was parsing successfull ? */
40
+	unsigned char valid; /* Was parsing successful ? */
41 41
 	int val;             /* Parsed value */
42 42
 } exp_body_t;
43 43
 
Browse code

Parser updated, expires_body structure has a new field which indicates if the HF contains a valid value, if not, this field will be set to 0 and module that called the parser can use some default value.

Jan Janak authored on 19/01/2003 19:00:01
Showing 1 changed files
... ...
@@ -36,8 +36,9 @@
36 36
 
37 37
 
38 38
 typedef struct exp_body {
39
-	str text;          /* Original text representation */
40
-	int val;           /* Parsed value */
39
+	str text;            /* Original text representation */
40
+	unsigned char valid; /* Was parsing successfull ? */
41
+	int val;             /* Parsed value */
41 42
 } exp_body_t;
42 43
 
43 44
 
Browse code

GPLization banner introduced to *.[hc] files

Jiri Kuthan authored on 19/09/2002 12:23:52
Showing 1 changed files
... ...
@@ -2,8 +2,32 @@
2 2
  * $Id$
3 3
  *
4 4
  * Expires header field body parser
5
+ *
6
+ * Copyright (C) 2001-2003 Fhg Fokus
7
+ *
8
+ * This file is part of ser, a free SIP server.
9
+ *
10
+ * ser is free software; you can redistribute it and/or modify
11
+ * it under the terms of the GNU General Public License as published by
12
+ * the Free Software Foundation; either version 2 of the License, or
13
+ * (at your option) any later version
14
+ *
15
+ * For a license to use the ser software under conditions
16
+ * other than those described here, or to purchase support for this
17
+ * software, please contact iptel.org by e-mail at the following addresses:
18
+ *    info@iptel.org
19
+ *
20
+ * ser is distributed in the hope that it will be useful,
21
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
+ * GNU General Public License for more details.
24
+ *
25
+ * You should have received a copy of the GNU General Public License 
26
+ * along with this program; if not, write to the Free Software 
27
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
5 28
  */
6 29
 
30
+
7 31
 #ifndef PARSE_EXPIRES_H
8 32
 #define PARSE_EXPIRES_H
9 33
 
Browse code

*** empty log message ***

Jan Janak authored on 12/08/2002 12:04:50
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,38 @@
1
+/*
2
+ * $Id$
3
+ *
4
+ * Expires header field body parser
5
+ */
6
+
7
+#ifndef PARSE_EXPIRES_H
8
+#define PARSE_EXPIRES_H
9
+
10
+#include "../str.h"
11
+#include "hf.h"
12
+
13
+
14
+typedef struct exp_body {
15
+	str text;          /* Original text representation */
16
+	int val;           /* Parsed value */
17
+} exp_body_t;
18
+
19
+
20
+/*
21
+ * Parse expires header field body
22
+ */
23
+int parse_expires(struct hdr_field* _h);
24
+
25
+
26
+/*
27
+ * Free all memory associated with exp_body_t
28
+ */
29
+void free_expires(exp_body_t** _e);
30
+
31
+
32
+/*
33
+ * Print exp_body_t content, for debugging only
34
+ */
35
+void print_expires(exp_body_t* _e);
36
+
37
+
38
+#endif /* PARSE_EXPIRES_H */