- 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,40 +0,0 @@ |
1 |
-/* |
|
2 |
- * Copyright (C) 2009 iptelorg GmbH |
|
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 :: pvapi init and destroy functions. |
|
19 |
- * \ingroup core |
|
20 |
- * Module: \ref core |
|
21 |
- */ |
|
22 |
- |
|
23 |
-#ifndef __pvapi_h__ |
|
24 |
-#define __pvapi_h__ |
|
25 |
- |
|
26 |
-int pv_init_api(void); |
|
27 |
-void pv_destroy_api(void); |
|
28 |
- |
|
29 |
-int pv_init_buffer(void); |
|
30 |
-int pv_reinit_buffer(void); |
|
31 |
-void pv_destroy_buffer(void); |
|
32 |
-char* pv_get_buffer(void); |
|
33 |
-int pv_get_buffer_size(void); |
|
34 |
-int pv_get_buffer_slots(void); |
|
35 |
-void pv_set_buffer_size(int n); |
|
36 |
-void pv_set_buffer_slots(int n); |
|
37 |
- |
|
38 |
-#endif /*__pvapi_h__*/ |
|
39 |
- |
|
40 |
-/* vi: set ts=4 sw=4 tw=79:ai:cindent: */ |
... | ... |
@@ -1,6 +1,4 @@ |
1 | 1 |
/* |
2 |
- * $Id$ |
|
3 |
- * |
|
4 | 2 |
* Copyright (C) 2009 iptelorg GmbH |
5 | 3 |
* |
6 | 4 |
* Permission to use, copy, modify, and distribute this software for any |
... | ... |
@@ -15,8 +13,11 @@ |
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 |
- * pvapi.h - pvapi init and destroy functions. |
|
16 |
+/*! |
|
17 |
+ * \file |
|
18 |
+ * \brief Kamailio core :: pvapi init and destroy functions. |
|
19 |
+ * \ingroup core |
|
20 |
+ * Module: \ref core |
|
20 | 21 |
*/ |
21 | 22 |
|
22 | 23 |
#ifndef __pvapi_h__ |
- the size of the buffer may have been updated by parameters
- access to the static buffers used to print dynamic strings with PVs
can be accessed via PV api
... | ... |
@@ -22,9 +22,18 @@ |
22 | 22 |
#ifndef __pvapi_h__ |
23 | 23 |
#define __pvapi_h__ |
24 | 24 |
|
25 |
-int init_pv_api(void); |
|
26 |
-void destroy_pv_api(void); |
|
25 |
+int pv_init_api(void); |
|
26 |
+void pv_destroy_api(void); |
|
27 | 27 |
|
28 |
-#endif /*__pvapi_h_*/ |
|
28 |
+int pv_init_buffer(void); |
|
29 |
+int pv_resize_buffer(void); |
|
30 |
+void pv_destroy_buffer(void); |
|
31 |
+char* pv_get_buffer(void); |
|
32 |
+int pv_get_buffer_size(void); |
|
33 |
+int pv_get_buffer_slots(void); |
|
34 |
+void pv_set_buffer_size(int n); |
|
35 |
+void pv_set_buffer_slots(int n); |
|
36 |
+ |
|
37 |
+#endif /*__pvapi_h__*/ |
|
29 | 38 |
|
30 | 39 |
/* vi: set ts=4 sw=4 tw=79:ai:cindent: */ |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,30 @@ |
1 |
+/* |
|
2 |
+ * $Id$ |
|
3 |
+ * |
|
4 |
+ * Copyright (C) 2009 iptelorg GmbH |
|
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 |
+ * pvapi.h - pvapi init and destroy functions. |
|
20 |
+ */ |
|
21 |
+ |
|
22 |
+#ifndef __pvapi_h__ |
|
23 |
+#define __pvapi_h__ |
|
24 |
+ |
|
25 |
+int init_pv_api(void); |
|
26 |
+void destroy_pv_api(void); |
|
27 |
+ |
|
28 |
+#endif /*__pvapi_h_*/ |
|
29 |
+ |
|
30 |
+/* vi: set ts=4 sw=4 tw=79:ai:cindent: */ |