diff options
author | Haru <haru@dotalux.com> | 2016-02-28 02:12:48 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-04-30 15:57:45 +0200 |
commit | 1ec93281b66061f7f7cff509450299bdcbf813b4 (patch) | |
tree | 737a9b2ea7cf5bc1e64f521d3987ea2997b688f5 /src/common/HPM.h | |
parent | 1a2a4f1477ebddcaefd132c141f7bbf64b23f016 (diff) | |
download | hercules-1ec93281b66061f7f7cff509450299bdcbf813b4.tar.gz hercules-1ec93281b66061f7f7cff509450299bdcbf813b4.tar.bz2 hercules-1ec93281b66061f7f7cff509450299bdcbf813b4.tar.xz hercules-1ec93281b66061f7f7cff509450299bdcbf813b4.zip |
Moved HPMHooking-related definitions to plugins/HPMHooking.h
- Plugins that want to make use of the HPMHooking must now include
"plugins/HPMHooking.h".
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/HPM.h')
-rw-r--r-- | src/common/HPM.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/common/HPM.h b/src/common/HPM.h index 109549aad..0b1275fde 100644 --- a/src/common/HPM.h +++ b/src/common/HPM.h @@ -65,6 +65,8 @@ #endif // WIN32 +struct HPMHooking_core_interface; + struct hplugin { DLL dll; unsigned int idx; @@ -126,9 +128,6 @@ struct HPM_interface { /* vars */ unsigned int version[2]; bool off; - bool hooking; - /* hooking */ - bool force_return; /* data */ VECTOR_DECL(struct hplugin *) plugins; VECTOR_DECL(struct hpm_symbol *) symbols; @@ -159,7 +158,6 @@ struct HPM_interface { char *(*pid2name) (unsigned int pid); unsigned char (*parse_packets) (int fd, int packet_id, enum HPluginPacketHookingPoints point); void (*load_sub) (struct hplugin *plugin); - bool (*addhook_sub) (enum HPluginHookType type, const char *target, void *hook, unsigned int pID); /* for custom config parsing */ bool (*parseConf) (const char *w1, const char *w2, enum HPluginConfType point); bool (*getBattleConf) (const char* w1, int *value); @@ -173,6 +171,9 @@ struct HPM_interface { bool (*data_store_validate) (enum HPluginDataTypes type, struct hplugin_data_store **storeptr, bool initialize); /* for server-specific HPData e.g. map_session_data */ bool (*data_store_validate_sub) (enum HPluginDataTypes type, struct hplugin_data_store **storeptr, bool initialize); + + /* hooking */ + struct HPMHooking_core_interface *hooking; }; CMDLINEARG(loadplugin); |