Browse code

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,43 @@
1
+/*
2
+ * Copyright (C) 2001-2003 FhG Fokus
3
+ * Copyright (C) 2005 iptelorg GmbH
4
+ *
5
+ * This file is part of Kamailio, a free SIP server.
6
+ *
7
+ * Kamailio is free software; you can redistribute it and/or modify
8
+ * it under the terms of the GNU General Public License as published by
9
+ * the Free Software Foundation; either version 2 of the License, or
10
+ * (at your option) any later version
11
+ *
12
+ * Kamailio is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
+ * GNU General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU General Public License 
18
+ * along with this program; if not, write to the Free Software 
19
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
20
+ */
21
+
22
+
23
+#ifndef _FIFO_SERVER_H
24
+#define _FIFO_SERVER_H
25
+
26
+#include <stdio.h>
27
+
28
+#define CMD_SEPARATOR ':'
29
+
30
+extern char* fifo_dir;
31
+extern int   fifo_reply_retries;
32
+extern int   fifo_reply_wait;
33
+
34
+/* Initialize FIFO server data structures */
35
+int init_fifo_fd(char* fifo, int fifo_mode, int fifo_uid, int fifo_gid,
36
+					int* wfd);
37
+
38
+int fifo_process(char* msg_buf, int size, int* bytes_need, void *sh, void** s);
39
+/* memory deallocation */
40
+void destroy_fifo(int read_fd, int w_fd, char* fname);
41
+int fifo_rpc_init();
42
+
43
+#endif