diff options
author | Haru <haru@dotalux.com> | 2018-07-01 18:32:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-01 18:32:57 +0200 |
commit | 56bed6dba78e3d65f6ff5aeec924b3ba2d06459d (patch) | |
tree | 9dea571701ae7879b79d663ad45948ddced6f58a /src/char/inter.h | |
parent | b1a1da3ac1b4a6465afe7b773b5f19178cd98ad2 (diff) | |
parent | 596428fa49b09ea1a0e0f17670ee127472576f37 (diff) | |
download | hercules-56bed6dba78e3d65f6ff5aeec924b3ba2d06459d.tar.gz hercules-56bed6dba78e3d65f6ff5aeec924b3ba2d06459d.tar.bz2 hercules-56bed6dba78e3d65f6ff5aeec924b3ba2d06459d.tar.xz hercules-56bed6dba78e3d65f6ff5aeec924b3ba2d06459d.zip |
Merge pull request #2108 from MishimaHaruna/mapifcleanup
Mapif cleanup
Diffstat (limited to 'src/char/inter.h')
-rw-r--r-- | src/char/inter.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/char/inter.h b/src/char/inter.h index 7f901927c..94ee3ab60 100644 --- a/src/char/inter.h +++ b/src/char/inter.h @@ -30,6 +30,12 @@ struct Sql; // common/sql.h struct config_t; // common/conf.h +struct WisData { + int id, fd, count, len; + int64 tick; + unsigned char src[24], dst[24], msg[512]; +}; + /** * inter interface **/ @@ -56,6 +62,13 @@ struct inter_interface { bool (*config_read) (const char *filename, bool imported); bool (*config_read_log) (const char *filename, const struct config_t *config, bool imported); bool (*config_read_connection) (const char *filename, const struct config_t *config, bool imported); + void (*accinfo) (int u_fd, int aid, int castergroup, const char *query, int map_fd); + void (*accinfo2) (bool success, int map_fd, int u_fd, int u_aid, int account_id, const char *userid, const char *user_pass, + const char *email, const char *last_ip, const char *lastlogin, const char *pin_code, const char *birthdate, + int group_id, int logincount, int state); + struct WisData *(*add_wisdata) (int fd, const unsigned char *src, const unsigned char *dst, const unsigned char *msg, int msg_len); + struct WisData *(*get_wisdata) (int id); + void (*remove_wisdata) (int id); }; #ifdef HERCULES_CORE |