Browse code

dispatcher: use clang format across the module

Daniel-Constantin Mierla authored on 10/01/2017 22:36:18
Showing 1 changed files
... ...
@@ -18,7 +18,7 @@
18 18
  */
19 19
 
20 20
 /*!
21
- * \file 
21
+ * \file
22 22
  * \brief Dispatcher :: Configuration
23 23
  * \ingroup Dispatcher
24 24
  */
... ...
@@ -29,11 +29,12 @@
29 29
 
30 30
 #include "config.h"
31 31
 
32
+/* clang-format off */
32 33
 struct cfg_group_dispatcher	default_dispatcher_cfg = {
33
-		1,	/* Probing threshold */	
34
-		1,      /* Inactive threshold */
35
-		{0,0}	/* reply codes */
36
-	    };
34
+	1,	/* Probing threshold */
35
+	1,      /* Inactive threshold */
36
+	{0,0}	/* reply codes */
37
+};
37 38
 
38 39
 void	*dispatcher_cfg = &default_dispatcher_cfg;
39 40
 
... ...
@@ -49,3 +50,4 @@ cfg_def_t	dispatcher_cfg_def[] = {
49 50
 		"Additional, valid reply codes for the OPTIONS Pinger. Default is \"\""},
50 51
 	{0, 0, 0, 0, 0, 0}
51 52
 };
53
+/* clang-format on */
Browse code

core, lib, modules: updated include paths for header files

Daniel-Constantin Mierla authored on 07/12/2016 11:07:22
Showing 1 changed files
... ...
@@ -24,8 +24,8 @@
24 24
  */
25 25
 
26 26
 
27
-#include "../../cfg/cfg.h"
28
-#include "../../parser/msg_parser.h" /* method types */
27
+#include "../../core/cfg/cfg.h"
28
+#include "../../core/parser/msg_parser.h" /* method types */
29 29
 
30 30
 #include "config.h"
31 31
 
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
new file mode 100644
... ...
@@ -0,0 +1,51 @@
1
+/*
2
+ * This file is part of Kamailio, a free SIP server.
3
+ *
4
+ * Kamailio is free software; you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation; either version 2 of the License, or
7
+ * (at your option) any later version
8
+ *
9
+ * Kamailio is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with this program; if not, write to the Free Software
16
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17
+ *
18
+ */
19
+
20
+/*!
21
+ * \file 
22
+ * \brief Dispatcher :: Configuration
23
+ * \ingroup Dispatcher
24
+ */
25
+
26
+
27
+#include "../../cfg/cfg.h"
28
+#include "../../parser/msg_parser.h" /* method types */
29
+
30
+#include "config.h"
31
+
32
+struct cfg_group_dispatcher	default_dispatcher_cfg = {
33
+		1,	/* Probing threshold */	
34
+		1,      /* Inactive threshold */
35
+		{0,0}	/* reply codes */
36
+	    };
37
+
38
+void	*dispatcher_cfg = &default_dispatcher_cfg;
39
+
40
+cfg_def_t	dispatcher_cfg_def[] = {
41
+	{"probing_threshold",		CFG_VAR_INT | CFG_ATOMIC,
42
+		0, 0, 0, 0,
43
+		"Number of failed requests, before a destination is set to probing."},
44
+	{"inactive_threshold",           CFG_VAR_INT | CFG_ATOMIC,
45
+		0, 0, 0, 0,
46
+        "Number of successful requests, before a destination is set to active."},
47
+	{"ping_reply_codes",		CFG_VAR_STR | CFG_CB_ONLY_ONCE
48
+		,			0, 0, 0, ds_ping_reply_codes_update,
49
+		"Additional, valid reply codes for the OPTIONS Pinger. Default is \"\""},
50
+	{0, 0, 0, 0, 0, 0}
51
+};