#### 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,33 +0,0 @@ 1 -/*  2 - * Copyright (C) 2010 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 :: Shared memory initialization 19 -* \ingroup core 20 -* \author andrei 21 -* Module: \ref core 22 -*/ 23 - 24 -#ifndef __shm_init_h 25 -#define __shm_init_h 26 - 27 -int shm_initialized(void); 28 -int init_shm(void); 29 -void shm_set_mname(char *mname); 30 - 31 -#endif /*__shm_init_h*/ 32 - 33 -/* vi: set ts=4 sw=4 tw=79:ai:cindent: */

#### core: share memory initialization updated for new memory management api

Daniel-Constantin Mierla authored on 14/09/2015 07:29:50
Showing 1 changed files
 ... ... @@ -26,6 +26,7 @@ 26 26   27 27  int shm_initialized(void); 28 28  int init_shm(void); 29 +void shm_set_mname(char *mname); 29 30   30 31  #endif /*__shm_init_h*/ 31 32 

#### 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) 2010 iptelorg GmbH 5 3  * 6 4  * Permission to use, copy, modify, and distribute this software for any ... ... @@ -15,13 +13,12 @@ 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 - * shm_init.h 20 - */ 21 -/* 22 - * History: 23 - * -------- 24 - * 2010-01-10 initial version (andrei) 16 +/*! 17 +* \file 18 +* \brief Kamailio core :: Shared memory initialization 19 +* \ingroup core 20 +* \author andrei 21 +* Module: \ref core 25 22  */ 26 23   27 24  #ifndef __shm_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,8 +27,8 @@ 27 27  #ifndef __shm_init_h 28 28  #define __shm_init_h 29 29   30 -int shm_initialized(); 31 -int init_shm(); 30 +int shm_initialized(void); 31 +int init_shm(void); 32 32   33 33  #endif /*__shm_init_h*/ 34 34 

#### core: moved shm init into separate files

- shm init moved from main.c into shm_init.c and shm_init.h.
 1 1 new file mode 100644 ... ... @@ -0,0 +1,35 @@ 1 +/*  2 + * $Id$ 3 + *  4 + * Copyright (C) 2010 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 + * shm_init.h 20 + */ 21 +/* 22 + * History: 23 + * -------- 24 + * 2010-01-10 initial version (andrei) 25 +*/ 26 + 27 +#ifndef __shm_init_h 28 +#define __shm_init_h 29 + 30 +int shm_initialized(); 31 +int init_shm(); 32 + 33 +#endif /*__shm_init_h*/ 34 + 35 +/* vi: set ts=4 sw=4 tw=79:ai:cindent: */