diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-08 12:34:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-15 11:47:29 +0300 |
commit | 7e6df4619270cbec689f4d6d73c5fc0498c2ed18 (patch) | |
tree | 627a223f0a29c392dd0c7a17977032198dce4155 /src/char/int_mercenary.h | |
parent | 72427289b387df3394eeadf629d3510f60742970 (diff) | |
download | hercules-7e6df4619270cbec689f4d6d73c5fc0498c2ed18.tar.gz hercules-7e6df4619270cbec689f4d6d73c5fc0498c2ed18.tar.bz2 hercules-7e6df4619270cbec689f4d6d73c5fc0498c2ed18.tar.xz hercules-7e6df4619270cbec689f4d6d73c5fc0498c2ed18.zip |
Add most functions from int_mercenary.c to interfaces.
Diffstat (limited to 'src/char/int_mercenary.h')
-rw-r--r-- | src/char/int_mercenary.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/char/int_mercenary.h b/src/char/int_mercenary.h index 504b2fca6..1d84a931a 100644 --- a/src/char/int_mercenary.h +++ b/src/char/int_mercenary.h @@ -8,15 +8,17 @@ struct mmo_charstatus; -int inter_mercenary_sql_init(void); -void inter_mercenary_sql_final(void); -int inter_mercenary_parse_frommap(int fd); +void inter_mercenary_defaults(void); -// Mercenary Owner Database -bool inter_mercenary_owner_fromsql(int char_id, struct mmo_charstatus *status); -bool inter_mercenary_owner_tosql(int char_id, struct mmo_charstatus *status); -bool inter_mercenary_owner_delete(int char_id); +struct inter_mercenary_interface { + bool (*owner_fromsql) (int char_id, struct mmo_charstatus *status); + bool (*owner_tosql) (int char_id, struct mmo_charstatus *status); + bool (*owner_delete) (int char_id); + int (*sql_init) (void); + void (*sql_final) (void); + int (*parse_frommap) (int fd); +}; -bool mapif_mercenary_delete(int merc_id); +struct inter_mercenary_interface *inter_mercenary; #endif /* CHAR_INT_MERCENARY_H */ |