summaryrefslogtreecommitdiff
path: root/src/char/int_auction.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/char/int_auction.h')
-rw-r--r--src/char/int_auction.h23
1 files changed, 20 insertions, 3 deletions
diff --git a/src/char/int_auction.h b/src/char/int_auction.h
index 17fd75a58..03efcdc51 100644
--- a/src/char/int_auction.h
+++ b/src/char/int_auction.h
@@ -4,9 +4,26 @@
#ifndef CHAR_INT_AUCTION_H
#define CHAR_INT_AUCTION_H
-int inter_auction_parse_frommap(int fd);
+#include "../common/mmo.h"
-int inter_auction_sql_init(void);
-void inter_auction_sql_final(void);
+void inter_auction_defaults(void);
+
+/**
+ * inter_auction_interface interface
+ **/
+struct inter_auction_interface {
+ DBMap* db; // int auction_id -> struct auction_data*
+ int (*count) (int char_id, bool buy);
+ void (*save) (struct auction_data *auction);
+ unsigned int (*create) (struct auction_data *auction);
+ int (*end_timer) (int tid, int64 tick, int id, intptr_t data);
+ void (*delete_) (struct auction_data *auction);
+ void (*fromsql) (void);
+ int (*parse_frommap) (int fd);
+ int (*sql_init) (void);
+ void (*sql_final) (void);
+};
+
+struct inter_auction_interface *inter_auction;
#endif /* CHAR_INT_AUCTION_H */