diff options
author | Haru <haru@dotalux.com> | 2015-10-04 22:50:36 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-10-04 22:50:36 +0200 |
commit | acbbba21c888c7e8c9a6c31652dfd61c90ca6ac8 (patch) | |
tree | 3758e0d16b4090f31271682f86133f34598cee97 /src/map/clif.h | |
parent | 4db986b93566d673c226971fa045f1dc99645242 (diff) | |
download | hercules-acbbba21c888c7e8c9a6c31652dfd61c90ca6ac8.tar.gz hercules-acbbba21c888c7e8c9a6c31652dfd61c90ca6ac8.tar.bz2 hercules-acbbba21c888c7e8c9a6c31652dfd61c90ca6ac8.tar.xz hercules-acbbba21c888c7e8c9a6c31652dfd61c90ca6ac8.zip |
Added clif->packet() to retrieve info about a packet.
- As per Malufett/Michieru request, in order to make it possible for a
plugin to obtain information about a packet.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/clif.h')
-rw-r--r-- | src/map/clif.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/map/clif.h b/src/map/clif.h index f6f0d4fe7..40610b7c1 100644 --- a/src/map/clif.h +++ b/src/map/clif.h @@ -597,6 +597,7 @@ struct clif_interface { int (*send_sub) (struct block_list *bl, va_list ap); int (*send_actual) (int fd, void *buf, int len); int (*parse) (int fd); + const struct s_packet_db *(*packet) (int packet_id); unsigned short (*parse_cmd) ( int fd, struct map_session_data *sd ); unsigned short (*decrypt_cmd) ( int cmd, struct map_session_data *sd ); /* auth */ @@ -1323,11 +1324,6 @@ struct clif_interface { }; #ifdef HERCULES_CORE -/** - * Vars - **/ -extern struct s_packet_db packet_db[MAX_PACKET_DB + 1]; - void clif_defaults(void); #endif // HERCULES_CORE |