Browse code

uid_domain: use module specific include guards

Daniel-Constantin Mierla authored on 04/05/2020 17:01:21
Showing 1 changed files
... ...
@@ -20,8 +20,8 @@
20 20
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 21
  */
22 22
 
23
-#ifndef _UID_DOMAIN_MOD_H
24
-#define _UID_DOMAIN_MOD_H
23
+#ifndef _UID_DOMAIN_MOD_H_
24
+#define _UID_DOMAIN_MOD_H_
25 25
 
26 26
 #include "../../lib/srdb2/db.h"
27 27
 #include "../../core/str.h"
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,9 +24,9 @@
24 24
 #define _UID_DOMAIN_MOD_H
25 25
 
26 26
 #include "../../lib/srdb2/db.h"
27
-#include "../../str.h"
28
-#include "../../usr_avp.h"
29
-#include "../../parser/msg_parser.h"
27
+#include "../../core/str.h"
28
+#include "../../core/usr_avp.h"
29
+#include "../../core/parser/msg_parser.h"
30 30
 #include "domain.h"
31 31
 
32 32
 
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,71 @@
1
+/*
2
+ * Domain module headers
3
+ *
4
+ * Copyright (C) 2002-2003 Juha Heinanen
5
+ *
6
+ * This file is part of sip-router, a free SIP server.
7
+ *
8
+ * sip-router is free software; you can redistribute it and/or modify it under
9
+ * the terms of the GNU General Public License as published by the Free
10
+ * Software Foundation; either version 2 of the License, or (at your option)
11
+ * any later version
12
+ *
13
+ * sip-router is distributed in the hope that it will be useful, but WITHOUT
14
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
16
+ * more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License along
19
+ * with this program; if not, write to the Free Software Foundation, Inc.,
20
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
+ */
22
+
23
+#ifndef _UID_DOMAIN_MOD_H
24
+#define _UID_DOMAIN_MOD_H
25
+
26
+#include "../../lib/srdb2/db.h"
27
+#include "../../str.h"
28
+#include "../../usr_avp.h"
29
+#include "../../parser/msg_parser.h"
30
+#include "domain.h"
31
+
32
+
33
+/*
34
+ * Module parameters variables
35
+ */
36
+extern int db_mode;             /* Database usage mode: 0 = no cache,
37
+								 * 1 = * cache */
38
+extern str domain_table;	/* Domain table name */
39
+extern str domain_col;   	/* Domain column name */
40
+extern str did_col;             /* Domain id col */
41
+extern str flags_col;           /* Flags column */
42
+
43
+/*
44
+ * Table containing domain attributes (in form of AVPs)
45
+ */
46
+extern str domattr_table;       /* Name of table containing domain attributes */
47
+extern str domattr_did;         /* Column containing domain id */
48
+extern str domattr_name;        /* Column containing name of attribute */
49
+extern str domattr_type;        /* Column containing type of attribute */
50
+extern str domattr_value;       /* Column containing value of attribute */
51
+extern str domattr_flags;       /* Column containing domain attribute flags */
52
+
53
+extern int load_domain_attrs;   /* Turn on/off domain attributes */
54
+
55
+/*
56
+ * Other module variables
57
+ */
58
+
59
+extern struct hash_entry*** active_hash; /* Pointer to current hash table */
60
+extern domain_t** domains_1;      /* List of domains 1 */
61
+extern domain_t** domains_2;      /* List of domains 2 */
62
+
63
+extern struct hash_entry*** hash;  /* Pointer to the current hash table */
64
+extern struct hash_entry** hash_1; /* Hash table 1 */
65
+extern struct hash_entry** hash_2; /* Hash table 2 */
66
+
67
+extern db_cmd_t* load_domains_cmd, *get_did_cmd, *load_attrs_cmd;
68
+
69
+int reload_domain_list(void);
70
+
71
+#endif /* _DOMAIN_MOD_H */