summaryrefslogtreecommitdiff
path: root/src/char/int_auction.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-07 19:51:03 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-15 11:47:29 +0300
commit9d6efc2567484d5f218f56de2ad0757ea71d0c1d (patch)
treec7bfa99e94e6e87d812b2f0a132f3a60933af1bf /src/char/int_auction.h
parent8338483dd4c41bc9831bebc9d6dc1808247fc497 (diff)
downloadhercules-9d6efc2567484d5f218f56de2ad0757ea71d0c1d.tar.gz
hercules-9d6efc2567484d5f218f56de2ad0757ea71d0c1d.tar.bz2
hercules-9d6efc2567484d5f218f56de2ad0757ea71d0c1d.tar.xz
hercules-9d6efc2567484d5f218f56de2ad0757ea71d0c1d.zip
Add most functions from int_auction.c to interfaces.
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 */