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,43 +0,0 @@
1
-/* 
2
- * Copyright (C) 2009 iptelorg GmbH
3
- *
4
- * Permission to use, copy, modify, and distribute this software for any
5
- * purpose with or without fee is hereby granted, provided that the above
6
- * copyright notice and this permission notice appear in all copies.
7
- *
8
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15
- */
16
-/*!
17
- * \file
18
- * \brief Kamailio core :: Kamailio RPC lookup and register functions
19
- * \ingroup core
20
- * Module: \ref core
21
- * \author andrei
22
- */
23
-
24
-#ifndef __rpc_lookup_h
25
-#define __rpc_lookup_h
26
-
27
-#include "rpc.h"
28
-/* must be exported for listing the rpcs */
29
-extern rpc_export_t** rpc_sarray;
30
-extern int rpc_sarray_crt_size;
31
-
32
-int init_rpcs(void);
33
-void destroy_rpcs(void);
34
-
35
-rpc_export_t* rpc_lookup(const char* name, int len);
36
-int rpc_register(rpc_export_t* rpc);
37
-int rpc_register_array(rpc_export_t* rpc_array);
38
-
39
-
40
-
41
-#endif /*__rpc_lookup_h*/
42
-
43
-/* vi: set ts=4 sw=4 tw=79:ai:cindent: */
Browse code

Core Update of doxygen, removal of history, changing "ser" to "kamailio"

Olle E. Johansson authored on 03/01/2015 14:03:24
Showing 1 changed files
... ...
@@ -1,6 +1,4 @@
1 1
 /* 
2
- * $Id$
3
- * 
4 2
  * Copyright (C) 2009 iptelorg GmbH
5 3
  *
6 4
  * Permission to use, copy, modify, and distribute this software for any
... ...
@@ -15,14 +13,13 @@
15 13
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 14
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 15
  */
18
-/*
19
- * SER RPC lookup and register functions
16
+/*!
17
+ * \file
18
+ * \brief Kamailio core :: Kamailio RPC lookup and register functions
19
+ * \ingroup core
20
+ * Module: \ref core
21
+ * \author andrei
20 22
  */
21
-/*
22
- * History:
23
- * --------
24
- *  2009-05-11  initial version (andrei)
25
-*/
26 23
 
27 24
 #ifndef __rpc_lookup_h
28 25
 #define __rpc_lookup_h
Browse code

core: sync definition of destroy_rpcs()

- reported by Victor Seva

Daniel-Constantin Mierla authored on 12/06/2014 07:59:44
Showing 1 changed files
... ...
@@ -33,7 +33,7 @@ extern rpc_export_t** rpc_sarray;
33 33
 extern int rpc_sarray_crt_size;
34 34
 
35 35
 int init_rpcs(void);
36
-int destroy_rpcs(void);
36
+void destroy_rpcs(void);
37 37
 
38 38
 rpc_export_t* rpc_lookup(const char* name, int len);
39 39
 int rpc_register(rpc_export_t* rpc);
Browse code

core: Added void to declarations of functions with empty argument list

In C language, a declaration in the form int f(); is equivalent to int f(...);, thus being able to accept an indefinit number of parameters. With the -Wstrict-prototypes GCC options, these declarations are reported as "function declaration isn’t a prototype".
On some cases, this may trick the compiler into generating unoptimized code (like preparing to handle variadic argument list).
In all cases having a declaration int f() and a definition inf f(int) is missleading, even if standard compliant.
This is still Work in Progress. (maybe adding the -Wstrict-prototypes option to default is desireable)

Marius Zbihlei authored on 02/04/2012 14:19:17
Showing 1 changed files
... ...
@@ -32,8 +32,8 @@
32 32
 extern rpc_export_t** rpc_sarray;
33 33
 extern int rpc_sarray_crt_size;
34 34
 
35
-int init_rpcs();
36
-int destroy_rpcs();
35
+int init_rpcs(void);
36
+int destroy_rpcs(void);
37 37
 
38 38
 rpc_export_t* rpc_lookup(const char* name, int len);
39 39
 int rpc_register(rpc_export_t* rpc);
Browse code

rpc: added register function and switched to hash table

- rpc switched to hashtable
- added rpc register function, that can be called from modules not
using ser module interface (e.g. kamailio or future sip-router
module interface).

Andrei Pelinescu-Onciul authored on 11/05/2009 22:39:03
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,46 @@
1
+/* 
2
+ * $Id$
3
+ * 
4
+ * Copyright (C) 2009 iptelorg GmbH
5
+ *
6
+ * Permission to use, copy, modify, and distribute this software for any
7
+ * purpose with or without fee is hereby granted, provided that the above
8
+ * copyright notice and this permission notice appear in all copies.
9
+ *
10
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
+ */
18
+/*
19
+ * SER RPC lookup and register functions
20
+ */
21
+/*
22
+ * History:
23
+ * --------
24
+ *  2009-05-11  initial version (andrei)
25
+*/
26
+
27
+#ifndef __rpc_lookup_h
28
+#define __rpc_lookup_h
29
+
30
+#include "rpc.h"
31
+/* must be exported for listing the rpcs */
32
+extern rpc_export_t** rpc_sarray;
33
+extern int rpc_sarray_crt_size;
34
+
35
+int init_rpcs();
36
+int destroy_rpcs();
37
+
38
+rpc_export_t* rpc_lookup(const char* name, int len);
39
+int rpc_register(rpc_export_t* rpc);
40
+int rpc_register_array(rpc_export_t* rpc_array);
41
+
42
+
43
+
44
+#endif /*__rpc_lookup_h*/
45
+
46
+/* vi: set ts=4 sw=4 tw=79:ai:cindent: */