summaryrefslogblamecommitdiff
path: root/src/char/int_mail.h
blob: 0a84497486fc99894182c60fe6cdd52a4b2991b8 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                          

                       
 

                                 
            
                 

                    
                               
 









                                                                                                                                                                
 
                                        
 
                            
// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder

#ifndef CHAR_INT_MAIL_H
#define CHAR_INT_MAIL_H

#include "../common/cbasetypes.h"

struct item;
struct mail_data;
struct mail_message;

void inter_mail_defaults(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);
};

struct inter_mail_interface *inter_mail;

#endif /* CHAR_INT_MAIL_H */