Browse code

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

Daniel-Constantin Mierla authored on 07/12/2016 11:07:22
Showing 1 changed files
... ...
@@ -25,8 +25,8 @@
25 25
 
26 26
 #include <time.h>
27 27
 
28
-#include "../../str.h"
29
-#include "../../locking.h"
28
+#include "../../core/str.h"
29
+#include "../../core/locking.h"
30 30
 
31 31
 #include "msrp_parser.h"
32 32
 
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,72 @@
1
+/**
2
+ * Copyright (C) 2013 Daniel-Constantin Mierla (asipto.com)
3
+ *
4
+ * This file is part of Kamailio, a free SIP server.
5
+ *
6
+ * This file 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
+ *
12
+ * This file 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 _MSRP_CMAP_H_
24
+#define _MSRP_CMAP_H_
25
+
26
+#include <time.h>
27
+
28
+#include "../../str.h"
29
+#include "../../locking.h"
30
+
31
+#include "msrp_parser.h"
32
+
33
+typedef struct _msrp_citem
34
+{
35
+    unsigned int citemid;
36
+	str sessionid;
37
+	str peer;
38
+	str addr;
39
+	str sock;
40
+	int conid;
41
+	int cflags;
42
+	time_t  expires;
43
+    struct _msrp_citem *prev;
44
+    struct _msrp_citem *next;
45
+} msrp_citem_t;
46
+
47
+typedef struct _msrp_centry
48
+{
49
+	unsigned int lsize;
50
+	msrp_citem_t *first;
51
+	gen_lock_t lock;	
52
+} msrp_centry_t;
53
+
54
+typedef struct _msrp_cmap
55
+{
56
+	unsigned int mapexpire;
57
+	unsigned int mapsize;
58
+	msrp_centry_t *cslots;
59
+	struct _msrp_cmap *next;
60
+} msrp_cmap_t;
61
+
62
+int msrp_cmap_init(int msize);
63
+int msrp_cmap_destroy(void);
64
+int msrp_cmap_clean(void);
65
+
66
+int msrp_cmap_save(msrp_frame_t *mf);
67
+int msrp_cmap_lookup(msrp_frame_t *mf);
68
+
69
+int msrp_sruid_init(void);
70
+
71
+int msrp_cmap_init_rpc(void);
72
+#endif