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/mapif.c | |
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/mapif.c')
-rw-r--r-- | src/char/mapif.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/char/mapif.c b/src/char/mapif.c index 6017b3d34..58b47a6e4 100644 --- a/src/char/mapif.c +++ b/src/char/mapif.c @@ -100,6 +100,19 @@ void mapif_parse_homunculus_delete(int fd, int homun_id); void mapif_parse_homunculus_load(int fd, int account_id, int homun_id); void mapif_parse_homunculus_save(int fd, int len, int account_id, struct s_homunculus* phd); void mapif_parse_homunculus_rename(int fd, int account_id, int char_id, char* name); +void mapif_mail_sendinbox(int fd, int char_id, unsigned char flag, struct mail_data *md); +void mapif_parse_mail_requestinbox(int fd); +void mapif_parse_mail_read(int fd); +void mapif_mail_sendattach(int fd, int char_id, struct mail_message *msg); +void mapif_mail_getattach(int fd, int char_id, int mail_id); +void mapif_parse_mail_getattach(int fd); +void mapif_mail_delete(int fd, int char_id, int mail_id, bool failed); +void mapif_parse_mail_delete(int fd); +void mapif_mail_new(struct mail_message *msg); +void mapif_mail_return(int fd, int char_id, int mail_id, int new_mail); +void mapif_parse_mail_return(int fd); +void mapif_mail_send(int fd, struct mail_message* msg); +void mapif_parse_mail_send(int fd); void mapif_defaults(void) { mapif = &mapif_s; @@ -185,4 +198,17 @@ void mapif_defaults(void) { mapif->parse_homunculus_load = mapif_parse_homunculus_load; mapif->parse_homunculus_save = mapif_parse_homunculus_save; mapif->parse_homunculus_rename = mapif_parse_homunculus_rename; + mapif->mail_sendinbox = mapif_mail_sendinbox; + mapif->parse_mail_requestinbox = mapif_parse_mail_requestinbox; + mapif->parse_mail_read = mapif_parse_mail_read; + mapif->mail_sendattach = mapif_mail_sendattach; + mapif->mail_getattach = mapif_mail_getattach; + mapif->parse_mail_getattach = mapif_parse_mail_getattach; + mapif->mail_delete = mapif_mail_delete; + mapif->parse_mail_delete = mapif_parse_mail_delete; + mapif->mail_new = mapif_mail_new; + mapif->mail_return = mapif_mail_return; + mapif->parse_mail_return = mapif_parse_mail_return; + mapif->mail_send = mapif_mail_send; + mapif->parse_mail_send = mapif_parse_mail_send; } |