| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 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 |
| 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 |
| 97 |
#endif |