Browse code

dispatcher: use clang format across the module

Daniel-Constantin Mierla authored on 10/01/2017 22:36:18
Showing 1 changed files
... ...
@@ -31,16 +31,17 @@
31 31
 #include "../../core/cfg/cfg.h"
32 32
 #include "../../core/str.h"
33 33
 
34
-struct cfg_group_dispatcher {
34
+struct cfg_group_dispatcher
35
+{
35 36
 	int probing_threshold;
36 37
 	int inactive_threshold;
37 38
 	str ds_ping_reply_codes_str;
38 39
 };
39 40
 
40
-extern struct cfg_group_dispatcher	default_dispatcher_cfg;
41
-extern void	*dispatcher_cfg;
42
-extern cfg_def_t	dispatcher_cfg_def[];
41
+extern struct cfg_group_dispatcher default_dispatcher_cfg;
42
+extern void *dispatcher_cfg;
43
+extern cfg_def_t dispatcher_cfg_def[];
43 44
 
44
-extern void ds_ping_reply_codes_update(str*, str*);
45
+extern void ds_ping_reply_codes_update(str *, str *);
45 46
 
46 47
 #endif
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
... ...
@@ -26,10 +26,10 @@
26 26
 #ifndef _DISPATCHER_CONFIG_H
27 27
 #define _DISPATCHER_CONFIG_H
28 28
 
29
-#include "../../qvalue.h"
29
+#include "../../core/qvalue.h"
30 30
 
31
-#include "../../cfg/cfg.h"
32
-#include "../../str.h"
31
+#include "../../core/cfg/cfg.h"
32
+#include "../../core/str.h"
33 33
 
34 34
 struct cfg_group_dispatcher {
35 35
 	int probing_threshold;
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,46 @@
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
+ * \file 
21
+ * \brief Dispatcher :: Configuration
22
+ * \ingroup dispatcher
23
+ */
24
+
25
+
26
+#ifndef _DISPATCHER_CONFIG_H
27
+#define _DISPATCHER_CONFIG_H
28
+
29
+#include "../../qvalue.h"
30
+
31
+#include "../../cfg/cfg.h"
32
+#include "../../str.h"
33
+
34
+struct cfg_group_dispatcher {
35
+	int probing_threshold;
36
+	int inactive_threshold;
37
+	str ds_ping_reply_codes_str;
38
+};
39
+
40
+extern struct cfg_group_dispatcher	default_dispatcher_cfg;
41
+extern void	*dispatcher_cfg;
42
+extern cfg_def_t	dispatcher_cfg_def[];
43
+
44
+extern void ds_ping_reply_codes_update(str*, str*);
45
+
46
+#endif