Browse code

cnxcc: minor changes

* use [PKG|SHM]_MEM_ERROR
* use memset and avoid initialization per field
* init variables
* add cnxcc to lgtm build
* use localtime_r() for a safer multi-thread usage
* replaced deprecated STR_PARAM with PARAM_STR
* clean includes
* clang-format

Victor Seva authored on 02/06/2020 17:12:31
Showing 1 changed files
... ...
@@ -23,6 +23,9 @@
23 23
 #ifndef CNXCC_SELECT_H_
24 24
 #define CNXCC_SELECT_H_
25 25
 
26
+#include "../../core/str.h"
27
+#include "../../core/select.h"
28
+
26 29
 int sel_root(str *res, select_t *s, struct sip_msg *msg);
27 30
 int sel_channels(str *res, select_t *s, struct sip_msg *msg);
28 31
 int sel_channels_count(str *res, select_t *s, struct sip_msg *msg);
Browse code

cnxcc: clang format the code

Daniel-Constantin Mierla authored on 24/11/2017 11:37:54
Showing 1 changed files
... ...
@@ -1,6 +1,4 @@
1 1
 /*
2
- * $Id$
3
- *
4 2
  * Copyright (C) 2012 Carlos Ruiz Díaz (caruizdiaz.com),
5 3
  *                    ConexionGroup (www.conexiongroup.com)
6 4
  *
... ...
@@ -25,8 +23,8 @@
25 23
 #ifndef CNXCC_SELECT_H_
26 24
 #define CNXCC_SELECT_H_
27 25
 
28
-int sel_root(str* res, select_t* s, struct sip_msg* msg);
29
-int sel_channels(str* res, select_t* s, struct sip_msg* msg);
30
-int sel_channels_count(str* res, select_t* s, struct sip_msg* msg);
26
+int sel_root(str *res, select_t *s, struct sip_msg *msg);
27
+int sel_channels(str *res, select_t *s, struct sip_msg *msg);
28
+int sel_channels_count(str *res, select_t *s, struct sip_msg *msg);
31 29
 
32 30
 #endif /* CNXCC_SELECT_H_ */
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,32 @@
1
+/*
2
+ * $Id$
3
+ *
4
+ * Copyright (C) 2012 Carlos Ruiz Díaz (caruizdiaz.com),
5
+ *                    ConexionGroup (www.conexiongroup.com)
6
+ *
7
+ * This file is part of Kamailio, a free SIP server.
8
+ *
9
+ * Kamailio is free software; you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation; either version 2 of the License, or
12
+ * (at your option) any later version
13
+ *
14
+ * Kamailio is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program; if not, write to the Free Software
21
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22
+ *
23
+ */
24
+
25
+#ifndef CNXCC_SELECT_H_
26
+#define CNXCC_SELECT_H_
27
+
28
+int sel_root(str* res, select_t* s, struct sip_msg* msg);
29
+int sel_channels(str* res, select_t* s, struct sip_msg* msg);
30
+int sel_channels_count(str* res, select_t* s, struct sip_msg* msg);
31
+
32
+#endif /* CNXCC_SELECT_H_ */