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
... ...
@@ -24,7 +24,7 @@
24 24
 #ifndef PUA_PIDF_H
25 25
 #define PUA_PIDF_H
26 26
 
27
-#include "../../str.h"
27
+#include "../../core/str.h"
28 28
 #include <libxml/parser.h>
29 29
 
30 30
 typedef xmlNodePtr (*xmlDocGetNodeByName_t)(xmlDocPtr doc, const char *name, const char *ns);
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,55 @@
1
+/*
2
+ * pua module
3
+ *
4
+ * Copyright (C) 2006 Voice Sistem S.R.L.
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
+#ifndef PUA_PIDF_H
25
+#define PUA_PIDF_H
26
+
27
+#include "../../str.h"
28
+#include <libxml/parser.h>
29
+
30
+typedef xmlNodePtr (*xmlDocGetNodeByName_t)(xmlDocPtr doc, const char *name, const char *ns);
31
+typedef xmlNodePtr (*xmlNodeGetNodeByName_t)(xmlNodePtr node, const char *name, const char *ns);
32
+typedef char* (*xmlNodeGetNodeContentByName_t)(xmlNodePtr root, const char *name,
33
+		const char *ns);
34
+typedef char* (*xmlNodeGetAttrContentByName_t)(xmlNodePtr node, const char *name);
35
+xmlNodePtr xmlNodeGetNodeByName(xmlNodePtr node, const char *name,
36
+															const char *ns);
37
+typedef struct libxml_api {
38
+	xmlDocGetNodeByName_t xmlDocGetNodeByName;
39
+	xmlNodeGetNodeByName_t xmlNodeGetNodeByName;
40
+	xmlNodeGetNodeContentByName_t xmlNodeGetNodeContentByName;
41
+	xmlNodeGetAttrContentByName_t xmlNodeGetAttrContentByName;
42
+} libxml_api_t;
43
+
44
+xmlNodePtr xmlDocGetNodeByName(xmlDocPtr doc, const char *name, const char *ns);
45
+xmlNodePtr xmlNodeGetChildByName(xmlNodePtr node, const char *name);
46
+
47
+char *xmlNodeGetNodeContentByName(xmlNodePtr root, const char *name,
48
+		const char *ns);
49
+char *xmlNodeGetAttrContentByName(xmlNodePtr node, const char *name);
50
+
51
+typedef int (*bind_libxml_t)(libxml_api_t* api);
52
+
53
+int bind_libxml_api(libxml_api_t* api);
54
+
55
+#endif /* PUA_PIDF_H */