- 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)
1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,55 +0,0 @@ |
1 |
-/* |
|
2 |
- * Copyright (C) 2013 mariuszbi@gmail.com |
|
3 |
- * |
|
4 |
- * Permission to use, copy, modify, and distribute this software for any |
|
5 |
- * purpose with or without fee is hereby granted, provided that the above |
|
6 |
- * copyright notice and this permission notice appear in all copies. |
|
7 |
- * |
|
8 |
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
|
9 |
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
|
10 |
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
|
11 |
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
|
12 |
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
|
13 |
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
|
14 |
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
|
15 |
- */ |
|
16 |
-/*! |
|
17 |
- * \file |
|
18 |
- * \brief Kamailio core :: DNS wrapper functions |
|
19 |
- * \author mariuszbi@gmail.com |
|
20 |
- * |
|
21 |
- * \ingroup core |
|
22 |
- * Module: \ref core |
|
23 |
- * |
|
24 |
- * |
|
25 |
- */ |
|
26 |
- |
|
27 |
-#ifndef DNS_FUNC_H |
|
28 |
-#define DNS_FUNC_H |
|
29 |
- |
|
30 |
-#include <sys/socket.h> |
|
31 |
- |
|
32 |
-struct hostent; |
|
33 |
- |
|
34 |
-typedef int (*res_init_t)(void); |
|
35 |
-typedef int (*res_search_t)(const char*, int, int, unsigned char*, int); |
|
36 |
-typedef struct hostent* (*gethostbyname_t)(const char*); |
|
37 |
-typedef struct hostent* (*gethostbyname2_t)(const char*, int); |
|
38 |
- |
|
39 |
-struct dns_func_t { |
|
40 |
- res_init_t sr_res_init; |
|
41 |
- res_search_t sr_res_search; |
|
42 |
- gethostbyname_t sr_gethostbyname; |
|
43 |
- gethostbyname2_t sr_gethostbyname2; |
|
44 |
-}; |
|
45 |
- |
|
46 |
-/* |
|
47 |
- * initiate structure with system values |
|
48 |
- */ |
|
49 |
-//extern struct dns_func_t dns_func; |
|
50 |
- |
|
51 |
-extern |
|
52 |
-void load_dnsfunc(struct dns_func_t *d); |
|
53 |
- |
|
54 |
- |
|
55 |
-#endif |
... | ... |
@@ -1,6 +1,4 @@ |
1 | 1 |
/* |
2 |
- * $Id$ |
|
3 |
- * |
|
4 | 2 |
* Copyright (C) 2013 mariuszbi@gmail.com |
5 | 3 |
* |
6 | 4 |
* Permission to use, copy, modify, and distribute this software for any |
... | ... |
@@ -15,14 +13,15 @@ |
15 | 13 |
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
16 | 14 |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
17 | 15 |
*/ |
18 |
-/* |
|
19 |
- * DNS Wrapper functions |
|
20 |
- */ |
|
21 |
-/* |
|
22 |
- * History: |
|
23 |
- * -------- |
|
24 |
- * 2013-03 initial version (marius) |
|
25 |
-*/ |
|
16 |
+/*! |
|
17 |
+ * \file |
|
18 |
+ * \brief Kamailio core :: DNS wrapper functions |
|
19 |
+ * \author mariuszbi@gmail.com |
|
20 |
+ * |
|
21 |
+ * \ingroup core |
|
22 |
+ * Module: \ref core |
|
23 |
+ * |
|
24 |
+ * |
|
26 | 25 |
|
27 | 26 |
#ifndef DNS_FUNC_H |
28 | 27 |
#define DNS_FUNC_H |
The library functions can now be easily overwritten by modules(dnssec) to allow enhanced resolving capabilities
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,55 @@ |
1 |
+/* |
|
2 |
+ * $Id$ |
|
3 |
+ * |
|
4 |
+ * Copyright (C) 2013 mariuszbi@gmail.com |
|
5 |
+ * |
|
6 |
+ * Permission to use, copy, modify, and distribute this software for any |
|
7 |
+ * purpose with or without fee is hereby granted, provided that the above |
|
8 |
+ * copyright notice and this permission notice appear in all copies. |
|
9 |
+ * |
|
10 |
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
|
11 |
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
|
12 |
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
|
13 |
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
|
14 |
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
|
15 |
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
|
16 |
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
|
17 |
+ */ |
|
18 |
+/* |
|
19 |
+ * DNS Wrapper functions |
|
20 |
+ */ |
|
21 |
+/* |
|
22 |
+ * History: |
|
23 |
+ * -------- |
|
24 |
+ * 2013-03 initial version (marius) |
|
25 |
+*/ |
|
26 |
+ |
|
27 |
+#ifndef DNS_FUNC_H |
|
28 |
+#define DNS_FUNC_H |
|
29 |
+ |
|
30 |
+#include <sys/socket.h> |
|
31 |
+ |
|
32 |
+struct hostent; |
|
33 |
+ |
|
34 |
+typedef int (*res_init_t)(void); |
|
35 |
+typedef int (*res_search_t)(const char*, int, int, unsigned char*, int); |
|
36 |
+typedef struct hostent* (*gethostbyname_t)(const char*); |
|
37 |
+typedef struct hostent* (*gethostbyname2_t)(const char*, int); |
|
38 |
+ |
|
39 |
+struct dns_func_t { |
|
40 |
+ res_init_t sr_res_init; |
|
41 |
+ res_search_t sr_res_search; |
|
42 |
+ gethostbyname_t sr_gethostbyname; |
|
43 |
+ gethostbyname2_t sr_gethostbyname2; |
|
44 |
+}; |
|
45 |
+ |
|
46 |
+/* |
|
47 |
+ * initiate structure with system values |
|
48 |
+ */ |
|
49 |
+//extern struct dns_func_t dns_func; |
|
50 |
+ |
|
51 |
+extern |
|
52 |
+void load_dnsfunc(struct dns_func_t *d); |
|
53 |
+ |
|
54 |
+ |
|
55 |
+#endif |