Debian Codegraph @

src/bnetd/sql_dbcreator.h

raw symbols SCIP
1 /*
2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU General Public License
4 * as published by the Free Software Foundation; either version 2
5 * of the License, or (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15 */
16
17 #ifndef INCLUDED_SQL_DBCREATOR_TYPES
18 #define INCLUDED_SQL_DBCRETAOR_TYPES
19
20 #include "common/list.h"
21
22 namespace pvpgn
23 {
24
25 namespace bnetd
26 {
27
28 typedef struct sqlcommand
29 #ifdef SQL_DBCREATOR_INTERNAL_ACCESS
30 {
31 char * sql_command;
32 char * mode;
33 char * extra_cmd;
34 }
35 #endif
36 t_sqlcommand;
37
38 typedef struct column
39 #ifdef SQL_DBCREATOR_INTERNAL_ACCESS
40 {
41 char * name;
42 char * value;
43 char * mode;
44 char * extra_cmd;
45 }
46 #endif
47 t_column;
48
49 typedef struct table
50 #ifdef SQL_DBCREATOR_INTERNAL_ACCESS
51 {
52 char * name;
53 t_list * columns;
54 t_list * sql_commands;
55 }
56 #endif
57 t_table;
58
59 typedef struct db_layout
60 #ifdef SQL_DBCREATOR_INTERNAL_ACCESS
61 {
62 t_list * tables;
63 }
64 #endif
65 t_db_layout;
66
67 }
68
69 }
70
71 #endif /* INCLUDED_SQL_DBCREATOR_TYPES */
72
73 #ifndef JUST_NEED_TYPES
74
75 #ifndef INCLUDED_SQL_DBCREATOR_PROTOS
76 #define INCLUDED_SQL_DBCRETAOR_PROTOS
77
78 #ifndef SQL_INTERNAL
79 #define SQL_INTERNAL 1
80 #endif
81 # include "sql_common.h"
82 #undef SQL_INTERNAL
83
84 namespace pvpgn
85 {
86
87 namespace bnetd
88 {
89
90 int sql_dbcreator(t_sql_engine * sql);
91
92 }
93
94 }
95
96 #endif /* INCLUDED_SQL_DBCREATOR_PROTOS */
97 #endif /* JUST_NEED_TYPES */