summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
diff options
context:
space:
mode:
authorHercules.ws <Hercules@efficiently.awesome>2014-11-16 07:18:25 +0100
committerHerculesWSAPI <Hercules@efficiently.awesome>2014-11-16 07:18:25 +0100
commit5264e2e5e043ed5c5d101940be5642fae58e069c (patch)
tree677dfdb6404285ac43dacff03212e076ec4bcc7e /src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
parent02fcaed6bd32b0ffbc4f03b8f9de6f0720e6253f (diff)
downloadhercules-5264e2e5e043ed5c5d101940be5642fae58e069c.tar.gz
hercules-5264e2e5e043ed5c5d101940be5642fae58e069c.tar.bz2
hercules-5264e2e5e043ed5c5d101940be5642fae58e069c.tar.xz
hercules-5264e2e5e043ed5c5d101940be5642fae58e069c.zip
HPM Hooks Update
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking_char.Hooks.inc')
-rw-r--r--src/plugins/HPMHooking/HPMHooking_char.Hooks.inc52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
index 8a602686f..ffa2cd7e2 100644
--- a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
@@ -6884,6 +6884,58 @@ int HP_inter_storage_parse_frommap(int fd) {
return retVal___;
}
/* loginif */
+void HP_loginif_init(void) {
+ int hIndex = 0;
+ if( HPMHooks.count.HP_loginif_init_pre ) {
+ void (*preHookFunc) (void);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_init_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_loginif_init_pre[hIndex].func;
+ preHookFunc();
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.loginif.init();
+ }
+ if( HPMHooks.count.HP_loginif_init_post ) {
+ void (*postHookFunc) (void);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_init_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_loginif_init_post[hIndex].func;
+ postHookFunc();
+ }
+ }
+ return;
+}
+void HP_loginif_final(void) {
+ int hIndex = 0;
+ if( HPMHooks.count.HP_loginif_final_pre ) {
+ void (*preHookFunc) (void);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_final_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_loginif_final_pre[hIndex].func;
+ preHookFunc();
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.loginif.final();
+ }
+ if( HPMHooks.count.HP_loginif_final_post ) {
+ void (*postHookFunc) (void);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_loginif_final_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_loginif_final_post[hIndex].func;
+ postHookFunc();
+ }
+ }
+ return;
+}
void HP_loginif_reset(void) {
int hIndex = 0;
if( HPMHooks.count.HP_loginif_reset_pre ) {