#### 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,31 +0,0 @@ 1 -/*  2 - *  3 - * Copyright (C) 2007 iptelorg GmbH 4 - * 5 - * Permission to use, copy, modify, and distribute this software for any 6 - * purpose with or without fee is hereby granted, provided that the above 7 - * copyright notice and this permission notice appear in all copies. 8 - * 9 - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 - */ 17 -/*! 18 -* \file 19 -* \brief Kamailio core :: lock_ops init functions 20 -* \ingroup core 21 -* \author andrei 22 -* Module: \ref core 23 - */ 24 - 25 -#ifndef __lock_ops_init_h 26 -#define __lock_ops_init_h 27 - 28 -int init_lock_ops(void); 29 -void destroy_lock_ops(void); 30 - 31 -#endif

#### 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,5 +1,4 @@ 1 1  /*  2 - * $Id$ 3 2  *  4 3  * Copyright (C) 2007 iptelorg GmbH 5 4  * ... ... @@ -15,13 +14,12 @@ 15 14  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 15  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 16  */ 18 -/* 19 - * lock_ops init functions 20 - */ 21 -/*  22 - * History: 23 - * -------- 24 - * 2007-05-14 created by andrei 17 +/*! 18 +* \file 19 +* \brief Kamailio core :: lock_ops init functions 20 +* \ingroup core 21 +* \author andrei 22 +* Module: \ref core 25 23  */ 26 24   27 25  #ifndef __lock_ops_init_h

#### 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
 ... ... @@ -27,7 +27,7 @@ 27 27  #ifndef __lock_ops_init_h 28 28  #define __lock_ops_init_h 29 29   30 -int init_lock_ops(); 31 -void destroy_lock_ops(); 30 +int init_lock_ops(void); 31 +void destroy_lock_ops(void); 32 32   33 33  #endif

#### - added futex based locking, used by default on linux 2.5.70+ (to turn it off compile with make use_futex=no) - moved get_sys_ver from io_wait.c into ut.c

Andrei Pelinescu-Onciul authored on 14/05/2007 21:29:46
Showing 1 changed files
 1 1 new file mode 100644 ... ... @@ -0,0 +1,33 @@ 1 +/*  2 + * $Id$ 3 + *  4 + * Copyright (C) 2007 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 + * lock_ops init functions 20 + */ 21 +/*  22 + * History: 23 + * -------- 24 + * 2007-05-14 created by andrei 25 + */ 26 + 27 +#ifndef __lock_ops_init_h 28 +#define __lock_ops_init_h 29 + 30 +int init_lock_ops(); 31 +void destroy_lock_ops(); 32 + 33 +#endif