summaryrefslogtreecommitdiff
path: root/src/common/console.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-07-08 15:34:41 -0300
committershennetsind <ind@henn.et>2013-07-08 15:34:41 -0300
commit8f7418ffaffb763e435b29eee5707c66d5615e73 (patch)
treeea4b44356fd036f4cce16738547684a70fc2dd6f /src/common/console.h
parent4f69a9ea0f80e78da61482b2d1143a6e58859fd1 (diff)
downloadhercules-8f7418ffaffb763e435b29eee5707c66d5615e73.tar.gz
hercules-8f7418ffaffb763e435b29eee5707c66d5615e73.tar.bz2
hercules-8f7418ffaffb763e435b29eee5707c66d5615e73.tar.xz
hercules-8f7418ffaffb763e435b29eee5707c66d5615e73.zip
Cygwin Fix for the Hercules SQL Update Check
Also modified the output (i think its sightly improved), also added a console command to skip updates so no need to go add the query yourself 'sql update skip <file name>' Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/common/console.h')
-rw-r--r--src/common/console.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/console.h b/src/common/console.h
index ebce013f7..214a41175 100644
--- a/src/common/console.h
+++ b/src/common/console.h
@@ -7,6 +7,7 @@
#include "../common/thread.h"
#include "../common/mutex.h"
#include "../common/spinlock.h"
+#include "../common/sql.h"
#include "../config/core.h"
/**
@@ -51,6 +52,8 @@ struct console_interface {
unsigned int cmd_count;
unsigned int cmd_list_count;
/* */
+ Sql *SQL;
+ /* */
void (*parse_init) (void);
void (*parse_final) (void);
int (*parse_timer) (int tid, unsigned int tick, int id, intptr_t data);
@@ -61,6 +64,7 @@ struct console_interface {
void (*load_defaults) (void);
void (*parse_list_subs) (struct CParseEntry *cmd, unsigned char depth);
void (*addCommand) (char *name, CParseFunc func);
+ void (*setSQL) (Sql *SQL);
#endif
};