#### 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,50 +0,0 @@ 1 -/*  2 - * Copyright (C) 2005 iptelorg GmbH 3 - * 4 - * This file is part of Kamailio, a free SIP server. 5 - * 6 - * Kamailio is free software; you can redistribute it and/or modify 7 - * it under the terms of the GNU General Public License as published by 8 - * the Free Software Foundation; either version 2 of the License, or 9 - * (at your option) any later version 10 - * 11 - * Kamailio is distributed in the hope that it will be useful, 12 - * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 - * GNU General Public License for more details. 15 - * 16 - * You should have received a copy of the GNU General Public License 17 - * along with this program; if not, write to the Free Software 18 - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 - */ 20 -/*! 21 - * \file 22 - * \brief Kamailio core :: I/O wait poll methods (enum, strings, related function) 23 - * see \ref io_wait.h for more details 24 - * \ingroup core 25 - * \author andrei 26 - * Module: \ref core 27 - */ 28 - 29 -#ifndef _poll_types_h 30 -#define _poll_types_h 31 - 32 -enum poll_types { POLL_NONE, POLL_POLL, POLL_EPOLL_LT, POLL_EPOLL_ET, 33 - POLL_SIGIO_RT, POLL_SELECT, POLL_KQUEUE, POLL_DEVPOLL, 34 - POLL_END}; 35 - 36 -/* all the function and vars are defined in io_wait.c */ 37 - 38 -extern char* poll_method_str[POLL_END]; 39 -extern char* poll_support;  40 - 41 - 42 -enum poll_types choose_poll_method(void); 43 - 44 -/* returns 0 on success, and an error message on error */ 45 -char* check_poll_method(enum poll_types poll_method); 46 - 47 -char* poll_method_name(enum poll_types poll_method); 48 -enum poll_types get_poll_type(char* s); 49 - 50 -#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,21 +1,14 @@ 1 1  /*  2 - * $Id$ 3 - *  4 2  * Copyright (C) 2005 iptelorg GmbH 5 3  * 6 - * This file is part of ser, a free SIP server. 4 + * This file is part of Kamailio, a free SIP server. 7 5  * 8 - * ser is free software; you can redistribute it and/or modify 6 + * Kamailio is free software; you can redistribute it and/or modify 9 7  * it under the terms of the GNU General Public License as published by 10 8  * the Free Software Foundation; either version 2 of the License, or 11 9  * (at your option) any later version 12 10  * 13 - * For a license to use the ser software under conditions 14 - * other than those described here, or to purchase support for this 15 - * software, please contact iptel.org by e-mail at the following addresses: 16 - * info@iptel.org 17 - * 18 - * ser is distributed in the hope that it will be useful, 11 + * Kamailio is distributed in the hope that it will be useful, 19 12  * but WITHOUT ANY WARRANTY; without even the implied warranty of 20 13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 14  * GNU General Public License for more details. ... ... @@ -24,18 +17,14 @@ 24 17  * along with this program; if not, write to the Free Software 25 18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 26 19  */ 27 -/*  28 - * io wait poll methods (enum, strings, related function) 29 - * see io_wait.h for more details 30 - *  31 - *  20 +/*! 21 + * \file 22 + * \brief Kamailio core :: I/O wait poll methods (enum, strings, related function) 23 + * see \ref io_wait.h for more details 24 + * \ingroup core 25 + * \author andrei 26 + * Module: \ref core 32 27  */ 33 -/*  34 - * History: 35 - * -------- 36 - * 2005-06-15 created by andrei 37 - */ 38 - 39 28   40 29  #ifndef _poll_types_h 41 30  #define _poll_types_h

#### all: updated FSF address in GPL text

Anthony Messina authored on 04/07/2014 09:36:37 • Daniel-Constantin Mierla committed on 04/07/2014 09:37:36
Showing 1 changed files
 ... ... @@ -22,7 +22,7 @@ 22 22  * 23 23  * You should have received a copy of the GNU General Public License 24 24  * along with this program; if not, write to the Free Software 25 - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 25 + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 26 26  */ 27 27  /*  28 28  * io wait poll methods (enum, strings, related function)

#### 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
 ... ... @@ -50,7 +50,7 @@ extern char* poll_method_str[POLL_END]; 50 50  extern char* poll_support;  51 51   52 52   53 -enum poll_types choose_poll_method(); 53 +enum poll_types choose_poll_method(void); 54 54   55 55  /* returns 0 on success, and an error message on error */ 56 56  char* check_poll_method(enum poll_types poll_method);

#### - tcp major changes part 1: support for >1024 connection, better io poll model (best poll method selected automatically, there is also an option to enforce it). So far support for epoll (linux >= 2.5.66), sigio + real time signals (linux), poll , select. kqueue (*bsd) and /dev/poll (solaris) comming soon. WARNING: this is still work in progress, the tcp reader part is still not converted to he new model (this means that while the tcp_main process supports > 1024 fds, the tcp childs don't), the main reason for leaving this out for now is debugging. Still to do: config options for poll_method (for now use -W method if you want to force one), config options for tcp timeouts a.s.o.

Andrei Pelinescu-Onciul authored on 16/06/2005 14:05:24
Showing 1 changed files
 1 1 new file mode 100644 ... ... @@ -0,0 +1,61 @@ 1 +/*  2 + * $Id$ 3 + *  4 + * Copyright (C) 2005 iptelorg GmbH 5 + * 6 + * This file is part of ser, a free SIP server. 7 + * 8 + * ser is free software; you can redistribute it and/or modify 9 + * it under the terms of the GNU General Public License as published by 10 + * the Free Software Foundation; either version 2 of the License, or 11 + * (at your option) any later version 12 + * 13 + * For a license to use the ser software under conditions 14 + * other than those described here, or to purchase support for this 15 + * software, please contact iptel.org by e-mail at the following addresses: 16 + * info@iptel.org 17 + * 18 + * ser is distributed in the hope that it will be useful, 19 + * but WITHOUT ANY WARRANTY; without even the implied warranty of 20 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 + * GNU General Public License for more details. 22 + * 23 + * You should have received a copy of the GNU General Public License 24 + * along with this program; if not, write to the Free Software 25 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 + */ 27 +/*  28 + * io wait poll methods (enum, strings, related function) 29 + * see io_wait.h for more details 30 + *  31 + *  32 + */ 33 +/*  34 + * History: 35 + * -------- 36 + * 2005-06-15 created by andrei 37 + */ 38 + 39 + 40 +#ifndef _poll_types_h 41 +#define _poll_types_h 42 + 43 +enum poll_types { POLL_NONE, POLL_POLL, POLL_EPOLL_LT, POLL_EPOLL_ET, 44 + POLL_SIGIO_RT, POLL_SELECT, POLL_KQUEUE, POLL_DEVPOLL, 45 + POLL_END}; 46 + 47 +/* all the function and vars are defined in io_wait.c */ 48 + 49 +extern char* poll_method_str[POLL_END]; 50 +extern char* poll_support;  51 + 52 + 53 +enum poll_types choose_poll_method(); 54 + 55 +/* returns 0 on success, and an error message on error */ 56 +char* check_poll_method(enum poll_types poll_method); 57 + 58 +char* poll_method_name(enum poll_types poll_method); 59 +enum poll_types get_poll_type(char* s); 60 + 61 +#endif