From a9caa4ea37115869eb3926ca6e4c53709e7d9337 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 5 Nov 2018 23:53:43 +0300 Subject: Update HPM hooks. --- src/common/HPMDataCheck.h | 5 +++++ src/common/HPMSymbols.inc.h | 7 +++++++ 2 files changed, 12 insertions(+) (limited to 'src/common') diff --git a/src/common/HPMDataCheck.h b/src/common/HPMDataCheck.h index ecdc83740..674e8ccc8 100644 --- a/src/common/HPMDataCheck.h +++ b/src/common/HPMDataCheck.h @@ -256,6 +256,11 @@ HPExport const struct s_HPMDataCheck HPMDataCheck[] = { #else #define COMMON_NULLPO_H #endif // COMMON_NULLPO_H + #ifdef COMMON_PACKETS_H + { "packets_interface", sizeof(struct packets_interface), SERVER_TYPE_ALL }, + #else + #define COMMON_PACKETS_H + #endif // COMMON_PACKETS_H #ifdef COMMON_RANDOM_H { "rnd_interface", sizeof(struct rnd_interface), SERVER_TYPE_ALL }, #else diff --git a/src/common/HPMSymbols.inc.h b/src/common/HPMSymbols.inc.h index 15acb1b06..146379508 100644 --- a/src/common/HPMSymbols.inc.h +++ b/src/common/HPMSymbols.inc.h @@ -218,6 +218,9 @@ struct npc_interface *npc; #ifdef COMMON_NULLPO_H /* nullpo */ struct nullpo_interface *nullpo; #endif // COMMON_NULLPO_H +#ifdef COMMON_PACKETS_H /* packets */ +struct packets_interface *packets; +#endif // COMMON_PACKETS_H #ifdef MAP_PARTY_H /* party */ struct party_interface *party; #endif // MAP_PARTY_H @@ -559,6 +562,10 @@ HPExport const char *HPM_shared_symbols(int server_type) if ((server_type&(SERVER_TYPE_ALL)) != 0 && !HPM_SYMBOL("nullpo", nullpo)) return "nullpo"; #endif // COMMON_NULLPO_H +#ifdef COMMON_PACKETS_H /* packets */ + if ((server_type&(SERVER_TYPE_ALL)) != 0 && !HPM_SYMBOL("packets", packets)) + return "packets"; +#endif // COMMON_PACKETS_H #ifdef MAP_PARTY_H /* party */ if ((server_type&(SERVER_TYPE_MAP)) != 0 && !HPM_SYMBOL("party", party)) return "party"; -- cgit v1.2.3-70-g09d2