summaryrefslogtreecommitdiff
path: root/src/char/int_storage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/char/int_storage.h')
-rw-r--r--src/char/int_storage.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/char/int_storage.h b/src/char/int_storage.h
index 8c6341e85..1f6c03f13 100644
--- a/src/char/int_storage.h
+++ b/src/char/int_storage.h
@@ -21,6 +21,7 @@
#ifndef CHAR_INT_STORAGE_H
#define CHAR_INT_STORAGE_H
+#include "common/db.h"
#include "common/hercules.h"
struct storage_data;
@@ -30,8 +31,14 @@ struct guild_storage;
* inter_storage interface
**/
struct inter_storage_interface {
- int (*tosql) (int account_id, struct storage_data* p);
- int (*fromsql) (int account_id, struct storage_data* p);
+ /* */
+ struct DBMap *account_storage;
+ /* */
+ /* */
+ struct DBData (*ensure_account_storage) (union DBKey key, va_list args);
+ int (*clear_account_storage) (union DBKey key, struct DBData *data, va_list args);
+ int (*tosql) (int account_id, struct storage_data *cp, const struct storage_data *p);
+ int (*fromsql) (int account_id, struct storage_data *p);
int (*guild_storage_tosql) (int guild_id, const struct guild_storage *p);
int (*guild_storage_fromsql) (int guild_id, struct guild_storage* p);
int (*sql_init) (void);