#### core, lib, modules: updated include paths for header files

Daniel-Constantin Mierla authored on 07/12/2016 11:07:22
Showing 1 changed files
 ... ... @@ -33,7 +33,7 @@ 33 33  #ifndef UTILS_H 34 34  #define UTILS_H 35 35   36 -#include "../../str.h" 36 +#include "../../core/str.h" 37 37  #include "../../lib/srdb1/db.h" 38 38   39 39  extern int http_query_timeout;

#### 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 new file mode 100644 ... ... @@ -0,0 +1,49 @@ 1 +/* 2 + * header file of utils.c 3 + * 4 + * Copyright (C) 2008 Juha Heinanen 5 + * 6 + * This file is part of Kamailio, a free SIP server. 7 + * 8 + * Kamailio 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 + * Kamailio is distributed in the hope that it will be useful, 14 + * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 + * GNU General Public License for more details. 17 + * 18 + * You should have received a copy of the GNU General Public License  19 + * along with this program; if not, write to the Free Software  20 + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 21 + * 22 + */ 23 + 24 +/*! 25 + * \file 26 + * \brief Kamailio utils :: Core 27 + * \ingroup utils 28 + * Module: \ref utils 29 + */ 30 + 31 + 32 + 33 +#ifndef UTILS_H 34 +#define UTILS_H 35 + 36 +#include "../../str.h" 37 +#include "../../lib/srdb1/db.h" 38 + 39 +extern int http_query_timeout; 40 +extern db1_con_t *pres_dbh; 41 +extern db_func_t pres_dbf; 42 + 43 +typedef struct { 44 + char *buf; 45 + size_t curr_size; 46 + size_t pos; 47 +} http_res_stream_t; 48 + 49 +#endif /* UTILS_H */