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.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/char/int_auction.h b/src/char/int_auction.h
index 17fd75a58..d44ff37cb 100644
--- a/src/char/int_auction.h
+++ b/src/char/int_auction.h
@@ -4,9 +4,22 @@
#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);
+
+struct inter_auction_interface {
+ 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 */