summaryrefslogtreecommitdiff
path: root/src/map/storage.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-09-28 12:25:07 -0300
committershennetsind <ind@henn.et>2013-09-28 12:25:07 -0300
commitf63b6a94ea8e3a8ad877ad401c6aff1eb4e1d45d (patch)
tree987af201029e651a580fd12d956d6dcb52a543cf /src/map/storage.h
parent346ea5f138e5baee36cf1e986c12fff84277f4ca (diff)
downloadhercules-f63b6a94ea8e3a8ad877ad401c6aff1eb4e1d45d.tar.gz
hercules-f63b6a94ea8e3a8ad877ad401c6aff1eb4e1d45d.tar.bz2
hercules-f63b6a94ea8e3a8ad877ad401c6aff1eb4e1d45d.tar.xz
hercules-f63b6a94ea8e3a8ad877ad401c6aff1eb4e1d45d.zip
HPM: Storage.c Completed
Moved missing declarations of interest into the interface, init/final from storage into gstorage Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/storage.h')
-rw-r--r--src/map/storage.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/map/storage.h b/src/map/storage.h
index 83243a622..9258e0265 100644
--- a/src/map/storage.h
+++ b/src/map/storage.h
@@ -12,8 +12,6 @@ struct map_session_data;
struct DBMap;
struct storage_interface {
- int (*init) (void);
- void (*final) (void);
/* */
void (*reconnect) (void);
/* */
@@ -26,6 +24,9 @@ struct storage_interface {
int (*gettocart) (struct map_session_data *sd,int index,int amount);
void (*close) (struct map_session_data *sd);
void (*pc_quit) (struct map_session_data *sd, int flag);
+ int (*comp_item) (const void *_i1, const void *_i2);
+ void (*sortitem) (struct item* items, unsigned int size);
+ int (*reconnect_sub) (DBKey key, DBData *data, va_list ap);
};
struct storage_interface *storage;
@@ -34,6 +35,10 @@ struct guild_storage_interface {
/* */
struct guild_storage *(*id2storage) (int guild_id);
struct guild_storage *(*id2storage2) (int guild_id);
+ /* */
+ void (*init) (void);
+ void (*final) (void);
+ /* */
int (*delete) (int guild_id);
int (*open) (struct map_session_data *sd);
int (*additem) (struct map_session_data *sd,struct guild_storage *stor,struct item *item_data,int amount);
@@ -46,6 +51,7 @@ struct guild_storage_interface {
int (*pc_quit) (struct map_session_data *sd,int flag);
int (*save) (int account_id, int guild_id, int flag);
int (*saved) (int guild_id); //Ack from char server that guild store was saved.
+ DBData (*create) (DBKey key, va_list args);
};
struct guild_storage_interface *gstorage;