#### 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) 2008 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 -/*! 18 - * \file 19 - * \brief Kamailio core :: endianness compile and runtime tests 20 - * \ingroup core 21 - * Module: \ref core 22 - */ 23 - 24 -#include "endianness.h" 25 - 26 -int _endian_test_int=1 /* used for the runtime endian tests */; 27 - 28 - 29 -/* return 0 on success, -1 on error (compile time detected endianness is 30 - * different from run time) 31 - */ 32 -int endianness_sanity_check() 33 -{ 34 -#ifdef __IS_LITTLE_ENDIAN 35 - return is_little_endian()-1; 36 -#elif defined __IS_BIG_ENDIAN 37 - return is_big_endian()-1; 38 -#else 39 -#warning BUG: endianness macro are not defined 40 - return -1; 41 -#endif 42 -} 43 -

#### Core Removed history, svn $id$ and doxygen udpates on the .c files

Olle E. Johansson authored on 03/01/2015 09:53:17
Showing 1 changed files
 ... ... @@ -1,6 +1,4 @@ 1 1  /*  2 - * $Id$ 3 - *  4 2  * Copyright (C) 2008 iptelorg GmbH 5 3  * 6 4  * Permission to use, copy, modify, and distribute this software for any ... ... @@ -15,17 +13,10 @@ 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 - * endianness compile and runtime tests 20 - *  21 - * History: 22 - * -------- 23 - * 2008-06-13 created by andrei 24 - */ 25 16   26 17  /*! 27 18  * \file 28 - * \brief SIP-router core ::  19 + * \brief Kamailio core :: endianness compile and runtime tests 29 20  * \ingroup core 30 21  * Module: \ref core 31 22  */

#### Adding doxygen template to all core .c files

Please fill in after the :: to explain the function of this file.

oej authored on 10/10/2009 13:54:13
Showing 1 changed files
 ... ... @@ -23,6 +23,13 @@ 23 23  * 2008-06-13 created by andrei 24 24  */ 25 25   26 +/*! 27 + * \file 28 + * \brief SIP-router core ::  29 + * \ingroup core 30 + * Module: \ref core 31 + */ 32 + 26 33  #include "endianness.h" 27 34   28 35  int _endian_test_int=1 /* used for the runtime endian tests */;

#### - an attempt at portable endianness macros: __IS_LITTLE_ENDIAN, __IS_BIG_ENDIAN and runtime check/sanity functions

Andrei Pelinescu-Onciul authored on 13/06/2008 20:09:54
Showing 1 changed files
 1 1 new file mode 100644 ... ... @@ -0,0 +1,45 @@ 1 +/*  2 + * $Id$ 3 + *  4 + * Copyright (C) 2008 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 + * endianness compile and runtime tests 20 + *  21 + * History: 22 + * -------- 23 + * 2008-06-13 created by andrei 24 + */ 25 + 26 +#include "endianness.h" 27 + 28 +int _endian_test_int=1 /* used for the runtime endian tests */; 29 + 30 + 31 +/* return 0 on success, -1 on error (compile time detected endianness is 32 + * different from run time) 33 + */ 34 +int endianness_sanity_check() 35 +{ 36 +#ifdef __IS_LITTLE_ENDIAN 37 + return is_little_endian()-1; 38 +#elif defined __IS_BIG_ENDIAN 39 + return is_big_endian()-1; 40 +#else 41 +#warning BUG: endianness macro are not defined 42 + return -1; 43 +#endif 44 +} 45 +