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_mail.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_mail.h')
-rw-r--r-- | src/char/int_mail.h | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/src/char/int_mail.h b/src/char/int_mail.h index 8800061d7..b69b27079 100644 --- a/src/char/int_mail.h +++ b/src/char/int_mail.h @@ -4,16 +4,28 @@ #ifndef CHAR_INT_MAIL_H #define CHAR_INT_MAIL_H +#include "../common/cbasetypes.h" + struct item; +struct mail_data; struct mail_message; -int inter_mail_parse_frommap(int fd); -void mail_sendmail(int send_id, const char* send_name, int dest_id, const char* dest_name, const char* title, const char* body, int zeny, struct item *item); +void inter_mail_defaults(void); -int inter_mail_sql_init(void); -void inter_mail_sql_final(void); +/** + * inter_mail interface + **/ +struct inter_mail_interface { + int (*sql_init) (void); + void (*sql_final) (void); + int (*parse_frommap) (int fd); + int (*fromsql) (int char_id, struct mail_data* md); + int (*savemessage) (struct mail_message* msg); + bool (*loadmessage) (int mail_id, struct mail_message* msg); + bool (*DeleteAttach) (int mail_id); + void (*sendmail) (int send_id, const char* send_name, int dest_id, const char* dest_name, const char* title, const char* body, int zeny, struct item *item); +}; -int mail_savemessage(struct mail_message* msg); -void mapif_Mail_new(struct mail_message *msg); +struct inter_mail_interface *inter_mail; #endif /* CHAR_INT_MAIL_H */ |