diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-08 12:01:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-15 11:47:29 +0300 |
commit | 72427289b387df3394eeadf629d3510f60742970 (patch) | |
tree | 4de78908d5713a2a32a3b00c76b8abf6bb38ece8 /src/char/int_mail.h | |
parent | f324b507a9c0792abee2d31f6f3607077376619d (diff) | |
download | hercules-72427289b387df3394eeadf629d3510f60742970.tar.gz hercules-72427289b387df3394eeadf629d3510f60742970.tar.bz2 hercules-72427289b387df3394eeadf629d3510f60742970.tar.xz hercules-72427289b387df3394eeadf629d3510f60742970.zip |
Add most functions from int_mail.c to interfaces.
Diffstat (limited to 'src/char/int_mail.h')
-rw-r--r-- | src/char/int_mail.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/char/int_mail.h b/src/char/int_mail.h index 490422c50..0a8449748 100644 --- a/src/char/int_mail.h +++ b/src/char/int_mail.h @@ -4,16 +4,25 @@ #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 inter_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); +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 inter_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 */ |