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,66 @@
1
+/*
2
+ * pua_db headers - presence user agent db headers
3
+ *
4
+ * Copyright (C) 2011 Crocodile RCS Ltd
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
+#ifndef PUA_DB_H
24
+#define PUA_DB_H
25
+
26
+#include "../../lib/srdb1/db.h"
27
+#include "../rls/list.h"
28
+
29
+#define PUA_PRES_URI (1<<0) 
30
+#define PUA_PRES_ID (1<<1)
31
+#define PUA_EVENT (1<<2)
32
+#define PUA_EXPIRES (1<<3)
33
+#define PUA_DESIRED_EXPIRES (1<<4)
34
+#define PUA_FLAG (1<<5)
35
+#define PUA_ETAG (1<<6)
36
+#define PUA_TUPLE_ID (1<<7)
37
+#define PUA_WATCHER_URI (1<<8)
38
+#define PUA_CALL_ID (1<<9)
39
+#define PUA_TO_TAG (1<<10)
40
+#define PUA_FROM_TAG (1<<11)
41
+#define PUA_CSEQ  (1<<12)
42
+#define PUA_RECORD_ROUTE (1<<13)
43
+#define PUA_CONTACT (1<<14)
44
+#define PUA_REMOTE_CONTACT (1<<15)
45
+#define PUA_VERSION (1<<16)
46
+#define PUA_EXTRA_HEADERS (1<<17)
47
+
48
+void free_results_puadb( db1_res_t *res );
49
+int is_dialog_puadb(ua_pres_t *pres);
50
+int get_record_id_puadb(ua_pres_t *pres, str **rec_id );
51
+
52
+int convert_temporary_dialog_puadb(ua_pres_t *pres);
53
+int insert_dialog_puadb(ua_pres_t* pres);
54
+ua_pres_t *get_dialog_puadb(str pres_id, str *pres_uri, ua_pres_t *result, db1_res_t **res);
55
+int delete_dialog_puadb(ua_pres_t *pres);
56
+int update_dialog_puadb(ua_pres_t *pres, int expires, str *contact);
57
+list_entry_t *get_subs_list_puadb(str *did);
58
+
59
+int insert_record_puadb(ua_pres_t* pres);
60
+ua_pres_t *get_record_puadb(str pres_id, str *etag, ua_pres_t *result, db1_res_t **res);
61
+int delete_record_puadb(ua_pres_t *pres);
62
+int update_record_puadb(ua_pres_t *pres, int expires, str *contact);
63
+int update_version_puadb(ua_pres_t *pres);
64
+int update_contact_puadb(ua_pres_t *pres, str *contact);
65
+
66
+#endif