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
... ...
@@ -49,8 +49,8 @@
49 49
 #include <stdio.h>
50 50
 #include <time.h>
51 51
 #include "hslot.h"
52
-#include "../../str.h"
53
-#include "../../qvalue.h"
52
+#include "../../core/str.h"
53
+#include "../../core/qvalue.h"
54 54
 #include "usrloc.h"
55 55
 
56 56
 struct hslot; 	/*!< Hash table slot */
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,77 @@
1
+/*
2
+ * $Id$
3
+ *
4
+ * Copyright (C) 2012 Smile Communications, jason.penton@smilecoms.com
5
+ * Copyright (C) 2012 Smile Communications, richard.good@smilecoms.com
6
+ * 
7
+ * The initial version of this code was written by Dragos Vingarzan
8
+ * (dragos(dot)vingarzan(at)fokus(dot)fraunhofer(dot)de and the
9
+ * Fruanhofer Institute. It was and still is maintained in a separate
10
+ * branch of the original SER. We are therefore migrating it to
11
+ * Kamailio/SR and look forward to maintaining it from here on out.
12
+ * 2011/2012 Smile Communications, Pty. Ltd.
13
+ * ported/maintained/improved by 
14
+ * Jason Penton (jason(dot)penton(at)smilecoms.com and
15
+ * Richard Good (richard(dot)good(at)smilecoms.com) as part of an 
16
+ * effort to add full IMS support to Kamailio/SR using a new and
17
+ * improved architecture
18
+ * 
19
+ * NB: Alot of this code was originally part of OpenIMSCore,
20
+ * FhG Fokus. 
21
+ * Copyright (C) 2004-2006 FhG Fokus
22
+ * Thanks for great work! This is an effort to 
23
+ * break apart the various CSCF functions into logically separate
24
+ * components. We hope this will drive wider use. We also feel
25
+ * that in this way the architecture is more complete and thereby easier
26
+ * to manage in the Kamailio/SR environment
27
+ *
28
+ * This file is part of Kamailio, a free SIP server.
29
+ *
30
+ * Kamailio is free software; you can redistribute it and/or modify
31
+ * it under the terms of the GNU General Public License as published by
32
+ * the Free Software Foundation; either version 2 of the License, or
33
+ * (at your option) any later version
34
+ *
35
+ * Kamailio is distributed in the hope that it will be useful,
36
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
37
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
38
+ * GNU General Public License for more details.
39
+ *
40
+ * You should have received a copy of the GNU General Public License 
41
+ * along with this program; if not, write to the Free Software 
42
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
43
+ * 
44
+ */
45
+
46
+#ifndef IMPURECORD_H
47
+#define IMPURECORD_H
48
+
49
+#include <stdio.h>
50
+#include <time.h>
51
+#include "hslot.h"
52
+#include "../../str.h"
53
+#include "../../qvalue.h"
54
+#include "usrloc.h"
55
+
56
+struct hslot; 	/*!< Hash table slot */
57
+
58
+
59
+void insert_ppublic(struct pcontact* _c, ppublic_t* _p);
60
+int new_ppublic(str* public_identity, int is_default, ppublic_t** _p);
61
+void free_ppublic(ppublic_t* _p);
62
+
63
+int new_pcontact(/*str* _dom, str* public_identity, int reg_state, int barring, ims_subscription** s, str* ccf1, str* ccf2, str* ecf1, str* ecf2, impurecord_t** _r*/);
64
+void free_pcontact(pcontact_t* _c);
65
+void print_pcontact(FILE* _f, pcontact_t* _r);
66
+ppublic_t* mem_insert_ppublic(pcontact_t* _r/*, str* _c, ucontact_info_t* _ci*/);
67
+void mem_remove_ppublic(pcontact_t* _r/*, ucontact_t* _c*/);
68
+void mem_delete_ppublic(pcontact_t* _r/*, ucontact_t* _c*/);
69
+void timer_pcontact(pcontact_t* _r);
70
+int delete_ppublic(pcontact_t* _r/*, struct ucontact* _c*/);
71
+int get_ppublic(pcontact_t* _r);
72
+int aor_to_contact(str* aor, str* contact);
73
+unsigned int get_hash_slot(udomain_t* _d, str* via_host, unsigned short via_port, unsigned short via_proto);
74
+unsigned int get_aor_hash(udomain_t* _d, str* via_host, unsigned short via_port, unsigned short via_proto);
75
+
76
+
77
+#endif