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,43 @@
1
+/*
2
+ * pua module - presence user agent 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_API_H
25
+#define PUA_API_H
26
+#include "send_subscribe.h"
27
+#include "send_publish.h"
28
+#include "pua_callback.h"
29
+#include "hash.h"
30
+
31
+typedef struct pua_api {
32
+	send_subscribe_t send_subscribe;
33
+	send_publish_t send_publish;
34
+	register_puacb_t register_puacb;
35
+	query_dialog_t is_dialog;
36
+	get_record_id_t get_record_id;
37
+	add_pua_event_t add_event;
38
+	get_subs_list_t get_subs_list;
39
+} pua_api_t;
40
+
41
+typedef int (*bind_pua_t)(pua_api_t* api);
42
+
43
+#endif