diff options
author | Haruna <haru@dotalux.com> | 2014-11-15 17:04:09 +0100 |
---|---|---|
committer | Haruna <haru@dotalux.com> | 2014-11-15 17:04:09 +0100 |
commit | a6f077063eeff08ee27ae5170de1bb5cf4b2defb (patch) | |
tree | 9bb5ab158230301e604918883ce6d06c31890341 /src/char/int_auction.h | |
parent | 77b88fe80b907122b24d698938538c22e029d25f (diff) | |
parent | 7f9fa7f59a82682fb139be4301e9a12a99644a19 (diff) | |
download | hercules-a6f077063eeff08ee27ae5170de1bb5cf4b2defb.tar.gz hercules-a6f077063eeff08ee27ae5170de1bb5cf4b2defb.tar.bz2 hercules-a6f077063eeff08ee27ae5170de1bb5cf4b2defb.tar.xz hercules-a6f077063eeff08ee27ae5170de1bb5cf4b2defb.zip |
Merge pull request #388 from 4144/charplugins
char server plugins
Diffstat (limited to 'src/char/int_auction.h')
-rw-r--r-- | src/char/int_auction.h | 23 |
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 */ |