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
... ...
@@ -29,7 +29,7 @@
29 29
 #ifndef _DBCASSA_LIB_H_
30 30
 #define _DBCASSA_LIB_H_
31 31
 
32
-#include "../../str.h"
32
+#include "../../core/str.h"
33 33
 #include "../../lib/srdb1/db_val.h"
34 34
 
35 35
 #define DBCASSA_DELIM     ':'
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,68 @@
1
+/*
2
+ * $Id$
3
+ *
4
+ * Copyright (C) 2012 1&1 Internet Development
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
+ * History:
23
+ * --------
24
+ * 2012-01 initial version (Anca Vamanu)
25
+ * 
26
+ */
27
+
28
+
29
+#ifndef _DBCASSA_LIB_H_
30
+#define _DBCASSA_LIB_H_
31
+
32
+#include "../../str.h"
33
+#include "../../lib/srdb1/db_val.h"
34
+
35
+#define DBCASSA_DELIM     ':'
36
+#define DBCASSA_DELIM_C   ' '
37
+#define DBCASSA_DELIM_R   '\n'
38
+
39
+typedef struct _dbcassa_column
40
+{
41
+	str name;
42
+	db_type_t type;
43
+	int flag;
44
+	struct _dbcassa_column *next;
45
+} dbcassa_column_t, *dbcassa_column_p;
46
+
47
+typedef struct _dbcassa_table
48
+{
49
+	str dbname;
50
+	str name;
51
+	int hash;
52
+	time_t mt;
53
+	int nrcols;
54
+	int key_len;
55
+	int seckey_len;
56
+	dbcassa_column_p cols;
57
+	dbcassa_column_p *key;
58
+	dbcassa_column_p *sec_key;
59
+	dbcassa_column_p ts_col; /* timestamp col- special col used as the timestamp for the row */
60
+	struct _dbcassa_table *next;
61
+} dbcassa_table_t, *dbcassa_table_p;
62
+
63
+void dbcassa_lock_release(dbcassa_table_p tbc);
64
+dbcassa_table_p dbcassa_db_get_table(const str* dbn, const str* tbn);
65
+int dbcassa_read_table_schemas(void);
66
+void dbcassa_destroy_htable(void);
67
+
68
+#endif