diff options
author | shennetsind <ind@henn.et> | 2013-11-11 17:56:48 -0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2013-11-14 20:15:28 +0100 |
commit | 091e235b78f83bd8c86c84e8b2db5ac9d5da98cd (patch) | |
tree | 79979f1f69e971be3c857b2a198977dc62f33348 /src/map/itemdb.h | |
parent | 59b9acb3d50fe7bbcce0f141d450cf328c0b24b7 (diff) | |
download | hercules-091e235b78f83bd8c86c84e8b2db5ac9d5da98cd.tar.gz hercules-091e235b78f83bd8c86c84e8b2db5ac9d5da98cd.tar.bz2 hercules-091e235b78f83bd8c86c84e8b2db5ac9d5da98cd.tar.xz hercules-091e235b78f83bd8c86c84e8b2db5ac9d5da98cd.zip |
Updated db2sql plugin for the needs of the new itemdb
May be used as ./map-server --db2sql or by typing "server tools db2sql" within map-server console parse.
Special Thanks to Haruna.
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r-- | src/map/itemdb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h index 870ecce58..533a808bc 100644 --- a/src/map/itemdb.h +++ b/src/map/itemdb.h @@ -349,13 +349,14 @@ struct itemdb_interface { int (*validate_entry) (struct item_data *entry, int n, const char *source); int (*readdb_sql_sub) (Sql *handle, int n, const char *source); int (*readdb_libconfig_sub) (config_setting_t *it, int n, const char *source); - int (*readdb) (void); + int (*readdb) (const char *filename); int (*read_sqldb) (void); uint64 (*unique_id) (int8 flag, int64 value); int (*uid_load) (); void (*read) (bool minimal); void (*destroy_item_data) (struct item_data *self, int free_self); int (*final_sub) (DBKey key, DBData *data, va_list ap); + void (*clear) (bool total); }; struct itemdb_interface *itemdb; |