summaryrefslogtreecommitdiff
path: root/src/common/HPM.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-01 20:22:03 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-01 20:22:03 +0300
commit95b4e328c254fdb060307990c37ac6acf3cce65f (patch)
tree29d0d99f677d13ad68a103f7c1885438061c2228 /src/common/HPM.h
parenta84c02d557cbc30dd51e662bf99439b95ca29859 (diff)
parente9c98a1c9069c34e079c0d3e089162dd19d46dac (diff)
downloadhercules-95b4e328c254fdb060307990c37ac6acf3cce65f.tar.gz
hercules-95b4e328c254fdb060307990c37ac6acf3cce65f.tar.bz2
hercules-95b4e328c254fdb060307990c37ac6acf3cce65f.tar.xz
hercules-95b4e328c254fdb060307990c37ac6acf3cce65f.zip
Merge pull request #1253 from HerculesWS/hpmhooking
Hpmhooking improvements
Diffstat (limited to 'src/common/HPM.h')
-rw-r--r--src/common/HPM.h9
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);