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,74 +0,0 @@
1
-/*
2
- * Copyright (c) 2004 Juha Heinanen
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
-/*! \file
22
- * \brief Parser :: Allow header
23
- *
24
- * \ingroup parser
25
- */
26
-
27
- 
28
-#ifndef PARSE_ALLOW_H
29
-#define PARSE_ALLOW_H
30
- 
31
-#include "hf.h"
32
-#include "msg_parser.h"
33
-
34
- 
35
-/*! \brief
36
- * casting macro for accessing Allow body 
37
- */
38
-#define get_allow_methods(p_msg)							\
39
-	(((struct allow_body*)(p_msg)->allow->parsed)->allow_all)
40
-
41
-
42
-struct allow_body {
43
-	unsigned int allow;     /*!< allow mask for the current hdr */
44
-	unsigned int allow_all; /*!< allow mask for the all allow hdr - it's
45
-							 * set only for the first hdr in sibling
46
-							 * list*/
47
-};
48
-
49
-
50
-/*! \brief
51
- * Parse all Allow HFs
52
- */
53
-int parse_allow(struct sip_msg *msg);
54
-
55
-
56
-/*! \brief
57
- * This method is used to parse Allow header.
58
- *
59
- * \param _hf message header field
60
- * \return 0 on success, -1 on failure.
61
- */
62
-int parse_allow_header(struct hdr_field* _hf);
63
-
64
-
65
-/*! \brief
66
- * Release memory
67
- */
68
-void free_allow_body(struct allow_body **ab);
69
-
70
-void free_allow_header(struct hdr_field* hf);
71
-
72
-
73
-
74
-#endif /* PARSE_ALLOW_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
... ...
@@ -1,14 +1,14 @@
1 1
 /*
2 2
  * Copyright (c) 2004 Juha Heinanen
3 3
  *
4
- * This file is part of ser, a free SIP server.
4
+ * This file is part of Kamailio, a free SIP server.
5 5
  *
6
- * ser 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
- * ser 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.
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
 /*! \file
Browse code

doxygen: fix a bunch of errors in parser, db_mysql and xmlrpc modules

Henning Westerholt authored on 12/09/2011 19:29:26
Showing 1 changed files
... ...
@@ -56,10 +56,10 @@ int parse_allow(struct sip_msg *msg);
56 56
 /*! \brief
57 57
  * This method is used to parse Allow header.
58 58
  *
59
- * \param hf message header field
59
+ * \param _hf message header field
60 60
  * \return 0 on success, -1 on failure.
61 61
  */
62
-int parse_allow_header(struct hdr_field* _h);
62
+int parse_allow_header(struct hdr_field* _hf);
63 63
 
64 64
 
65 65
 /*! \brief
Browse code

doxygen documentation fixes

Henning Westerholt authored on 27/07/2011 22:22:09
Showing 1 changed files
... ...
@@ -1,6 +1,4 @@
1 1
 /*
2
- * $Id$
3
- *
4 2
  * Copyright (c) 2004 Juha Heinanen
5 3
  *
6 4
  * This file is part of ser, a free SIP server.
... ...
@@ -56,7 +54,10 @@ int parse_allow(struct sip_msg *msg);
56 54
 
57 55
 
58 56
 /*! \brief
59
- * Parse Allow HF body
57
+ * This method is used to parse Allow header.
58
+ *
59
+ * \param hf message header field
60
+ * \return 0 on success, -1 on failure.
60 61
  */
61 62
 int parse_allow_header(struct hdr_field* _h);
62 63
 
Browse code

More parser/ doxygen changes

oej authored on 25/10/2009 17:26:46
Showing 1 changed files
... ...
@@ -10,11 +10,6 @@
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 13
  * ser 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
... ...
@@ -24,6 +19,13 @@
24 19
  * along with this program; if not, write to the Free Software 
25 20
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26 21
  */
22
+
23
+/*! \file
24
+ * \brief Parser :: Allow header
25
+ *
26
+ * \ingroup parser
27
+ */
28
+
27 29
  
28 30
 #ifndef PARSE_ALLOW_H
29 31
 #define PARSE_ALLOW_H
... ...
@@ -32,7 +34,7 @@
32 34
 #include "msg_parser.h"
33 35
 
34 36
  
35
-/* 
37
+/*! \brief
36 38
  * casting macro for accessing Allow body 
37 39
  */
38 40
 #define get_allow_methods(p_msg)							\
... ...
@@ -40,26 +42,26 @@
40 42
 
41 43
 
42 44
 struct allow_body {
43
-	unsigned int allow;     /* allow mask for the current hdr */
44
-	unsigned int allow_all; /* allow mask for the all allow hdr - it's
45
+	unsigned int allow;     /*!< allow mask for the current hdr */
46
+	unsigned int allow_all; /*!< allow mask for the all allow hdr - it's
45 47
 							 * set only for the first hdr in sibling
46 48
 							 * list*/
47 49
 };
48 50
 
49 51
 
50
-/*
52
+/*! \brief
51 53
  * Parse all Allow HFs
52 54
  */
53 55
 int parse_allow(struct sip_msg *msg);
54 56
 
55 57
 
56
-/*
58
+/*! \brief
57 59
  * Parse Allow HF body
58 60
  */
59 61
 int parse_allow_header(struct hdr_field* _h);
60 62
 
61 63
 
62
-/*
64
+/*! \brief
63 65
  * Release memory
64 66
  */
65 67
 void free_allow_body(struct allow_body **ab);
Browse code

Allow parser syn'ced with kamailio version

Sync'ed parse_allow_header() prototype name with implementation. New
parse_allow() function that work over sim_msg structure

Signed-off-by: Jan Janak <jan@iptel.org>

Daniel-Constantin Mierla authored on 20/03/2009 16:19:22 • Jan Janak committed on 23/03/2009 10:11:41
Showing 1 changed files
... ...
@@ -29,23 +29,43 @@
29 29
 #define PARSE_ALLOW_H
30 30
  
31 31
 #include "hf.h"
32
+#include "msg_parser.h"
32 33
 
33 34
  
34 35
 /* 
35
- * casting macro for accessing RPID body 
36
+ * casting macro for accessing Allow body 
36 37
  */
37
-#define get_allow_methods(p_msg) (unsigned int)(p_msg)->allow->parsed)
38
+#define get_allow_methods(p_msg)							\
39
+	(((struct allow_body*)(p_msg)->allow->parsed)->allow_all)
40
+
41
+
42
+struct allow_body {
43
+	unsigned int allow;     /* allow mask for the current hdr */
44
+	unsigned int allow_all; /* allow mask for the all allow hdr - it's
45
+							 * set only for the first hdr in sibling
46
+							 * list*/
47
+};
48
+
49
+
50
+/*
51
+ * Parse all Allow HFs
52
+ */
53
+int parse_allow(struct sip_msg *msg);
38 54
 
39 55
 
40 56
 /*
41 57
  * Parse Allow HF body
42 58
  */
43
-int parse_allow(struct hdr_field* _h);
59
+int parse_allow_header(struct hdr_field* _h);
44 60
 
45 61
 
46 62
 /*
47 63
  * Release memory
48 64
  */
49
-void free_allow(unsigned int** _methods);
65
+void free_allow_body(struct allow_body **ab);
66
+
67
+void free_allow_header(struct hdr_field* hf);
68
+
69
+
50 70
 
51 71
 #endif /* PARSE_ALLOW_H */
Browse code

- Really commited the allow parser now

Jan Janak authored on 13/08/2004 21:46:27
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,51 @@
1
+/*
2
+ * $Id$
3
+ *
4
+ * Copyright (c) 2004 Juha Heinanen
5
+ *
6
+ * This file is part of ser, a free SIP server.
7
+ *
8
+ * ser 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
+ * 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,
19
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
+ * GNU General Public License for more details.
22
+ *
23
+ * You should have received a copy of the GNU General Public License 
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
26
+ */
27
+ 
28
+#ifndef PARSE_ALLOW_H
29
+#define PARSE_ALLOW_H
30
+ 
31
+#include "hf.h"
32
+
33
+ 
34
+/* 
35
+ * casting macro for accessing RPID body 
36
+ */
37
+#define get_allow_methods(p_msg) (unsigned int)(p_msg)->allow->parsed)
38
+
39
+
40
+/*
41
+ * Parse Allow HF body
42
+ */
43
+int parse_allow(struct hdr_field* _h);
44
+
45
+
46
+/*
47
+ * Release memory
48
+ */
49
+void free_allow(unsigned int** _methods);
50
+
51
+#endif /* PARSE_ALLOW_H */