diff options
author | Hercules.ws <dev@herc.ws> | 2016-08-22 03:34:24 +0200 |
---|---|---|
committer | HerculesWSAPI <dev@herc.ws> | 2016-08-22 03:34:24 +0200 |
commit | 22e4f01fda1d9f61b0e663eb9e4edf8bd73b6e91 (patch) | |
tree | b1c25f9c7fd62cf2fec844f3c34e10c98cfd275d /src/plugins/HPMHooking/HPMHooking_char.Hooks.inc | |
parent | 6be58f54fcae8115bd4ffb6b3abb1bbf65248797 (diff) | |
download | hercules-22e4f01fda1d9f61b0e663eb9e4edf8bd73b6e91.tar.gz hercules-22e4f01fda1d9f61b0e663eb9e4edf8bd73b6e91.tar.bz2 hercules-22e4f01fda1d9f61b0e663eb9e4edf8bd73b6e91.tar.xz hercules-22e4f01fda1d9f61b0e663eb9e4edf8bd73b6e91.zip |
HPM Hooks Update
Signed-off-by: HerculesWSAPI <dev@herc.ws>
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking_char.Hooks.inc')
-rw-r--r-- | src/plugins/HPMHooking/HPMHooking_char.Hooks.inc | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc index 3669b2da8..63afcab3c 100644 --- a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc +++ b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc @@ -7060,6 +7060,33 @@ bool HP_inter_config_read(const char *filename, bool imported) { } return retVal___; } +bool HP_inter_config_read_log(const char *filename, const struct config_t *config, bool imported) { + int hIndex = 0; + bool retVal___ = false; + if( HPMHooks.count.HP_inter_config_read_log_pre ) { + bool (*preHookFunc) (const char **filename, const struct config_t **config, bool *imported); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_config_read_log_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_config_read_log_pre[hIndex].func; + retVal___ = preHookFunc(&filename, &config, &imported); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter.config_read_log(filename, config, imported); + } + if( HPMHooks.count.HP_inter_config_read_log_post ) { + bool (*postHookFunc) (bool retVal___, const char *filename, const struct config_t *config, bool imported); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_config_read_log_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_config_read_log_post[hIndex].func; + retVal___ = postHookFunc(retVal___, filename, config, imported); + } + } + return retVal___; +} bool HP_inter_config_read_connection(const char *filename, const struct config_t *config, bool imported) { int hIndex = 0; bool retVal___ = false; |