summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking
diff options
context:
space:
mode:
authorHercules.ws <Hercules@efficiently.awesome>2015-12-16 15:17:34 +0100
committerHerculesWSAPI <Hercules@efficiently.awesome>2015-12-16 15:17:34 +0100
commitf1506b5a1cf67e66eb441fa5f9a32a1191935929 (patch)
tree719ca64293b443eb0ae03118c872a443b28fd97d /src/plugins/HPMHooking
parentd39250a6d5bb8987fcc8d7e8961680f9802fb2e7 (diff)
downloadhercules-f1506b5a1cf67e66eb441fa5f9a32a1191935929.tar.gz
hercules-f1506b5a1cf67e66eb441fa5f9a32a1191935929.tar.bz2
hercules-f1506b5a1cf67e66eb441fa5f9a32a1191935929.tar.xz
hercules-f1506b5a1cf67e66eb441fa5f9a32a1191935929.zip
HPM Hooks Update
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Diffstat (limited to 'src/plugins/HPMHooking')
-rw-r--r--src/plugins/HPMHooking/HPMHooking_char.HPMHooksCore.inc4
-rw-r--r--src/plugins/HPMHooking/HPMHooking_char.HookingPoints.inc1
-rw-r--r--src/plugins/HPMHooking/HPMHooking_char.Hooks.inc26
-rw-r--r--src/plugins/HPMHooking/HPMHooking_login.HPMHooksCore.inc4
-rw-r--r--src/plugins/HPMHooking/HPMHooking_login.HookingPoints.inc1
-rw-r--r--src/plugins/HPMHooking/HPMHooking_login.Hooks.inc26
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.HPMHooksCore.inc4
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.HookingPoints.inc1
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.Hooks.inc26
9 files changed, 93 insertions, 0 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_char.HPMHooksCore.inc b/src/plugins/HPMHooking/HPMHooking_char.HPMHooksCore.inc
index bc92d85c9..aefb3aa93 100644
--- a/src/plugins/HPMHooking/HPMHooking_char.HPMHooksCore.inc
+++ b/src/plugins/HPMHooking/HPMHooking_char.HPMHooksCore.inc
@@ -366,6 +366,8 @@ struct {
struct HPMHookPoint *HP_console_final_post;
struct HPMHookPoint *HP_console_display_title_pre;
struct HPMHookPoint *HP_console_display_title_post;
+ struct HPMHookPoint *HP_console_display_gplnotice_pre;
+ struct HPMHookPoint *HP_console_display_gplnotice_post;
struct HPMHookPoint *HP_core_shutdown_callback_pre;
struct HPMHookPoint *HP_core_shutdown_callback_post;
struct HPMHookPoint *HP_DB_fix_options_pre;
@@ -1741,6 +1743,8 @@ struct {
int HP_console_final_post;
int HP_console_display_title_pre;
int HP_console_display_title_post;
+ int HP_console_display_gplnotice_pre;
+ int HP_console_display_gplnotice_post;
int HP_core_shutdown_callback_pre;
int HP_core_shutdown_callback_post;
int HP_DB_fix_options_pre;
diff --git a/src/plugins/HPMHooking/HPMHooking_char.HookingPoints.inc b/src/plugins/HPMHooking/HPMHooking_char.HookingPoints.inc
index 1d07fda2e..3c442c4ab 100644
--- a/src/plugins/HPMHooking/HPMHooking_char.HookingPoints.inc
+++ b/src/plugins/HPMHooking/HPMHooking_char.HookingPoints.inc
@@ -198,6 +198,7 @@ struct HookingPointData HookingPoints[] = {
{ HP_POP(console->init, HP_console_init) },
{ HP_POP(console->final, HP_console_final) },
{ HP_POP(console->display_title, HP_console_display_title) },
+ { HP_POP(console->display_gplnotice, HP_console_display_gplnotice) },
/* core */
{ HP_POP(core->shutdown_callback, HP_core_shutdown_callback) },
/* DB */
diff --git a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
index 9f469b7ee..3e9e6e1d2 100644
--- a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
@@ -4562,6 +4562,32 @@ void HP_console_display_title(void) {
}
return;
}
+void HP_console_display_gplnotice(void) {
+ int hIndex = 0;
+ if( HPMHooks.count.HP_console_display_gplnotice_pre ) {
+ void (*preHookFunc) (void);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_console_display_gplnotice_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_console_display_gplnotice_pre[hIndex].func;
+ preHookFunc();
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.console.display_gplnotice();
+ }
+ if( HPMHooks.count.HP_console_display_gplnotice_post ) {
+ void (*postHookFunc) (void);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_console_display_gplnotice_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_console_display_gplnotice_post[hIndex].func;
+ postHookFunc();
+ }
+ }
+ return;
+}
/* core */
void HP_core_shutdown_callback(void) {
int hIndex = 0;
diff --git a/src/plugins/HPMHooking/HPMHooking_login.HPMHooksCore.inc b/src/plugins/HPMHooking/HPMHooking_login.HPMHooksCore.inc
index 39154f55f..5540e15b3 100644
--- a/src/plugins/HPMHooking/HPMHooking_login.HPMHooksCore.inc
+++ b/src/plugins/HPMHooking/HPMHooking_login.HPMHooksCore.inc
@@ -48,6 +48,8 @@ struct {
struct HPMHookPoint *HP_console_final_post;
struct HPMHookPoint *HP_console_display_title_pre;
struct HPMHookPoint *HP_console_display_title_post;
+ struct HPMHookPoint *HP_console_display_gplnotice_pre;
+ struct HPMHookPoint *HP_console_display_gplnotice_post;
struct HPMHookPoint *HP_core_shutdown_callback_pre;
struct HPMHookPoint *HP_core_shutdown_callback_post;
struct HPMHookPoint *HP_DB_fix_options_pre;
@@ -619,6 +621,8 @@ struct {
int HP_console_final_post;
int HP_console_display_title_pre;
int HP_console_display_title_post;
+ int HP_console_display_gplnotice_pre;
+ int HP_console_display_gplnotice_post;
int HP_core_shutdown_callback_pre;
int HP_core_shutdown_callback_post;
int HP_DB_fix_options_pre;
diff --git a/src/plugins/HPMHooking/HPMHooking_login.HookingPoints.inc b/src/plugins/HPMHooking/HPMHooking_login.HookingPoints.inc
index 95f669537..27e0f857d 100644
--- a/src/plugins/HPMHooking/HPMHooking_login.HookingPoints.inc
+++ b/src/plugins/HPMHooking/HPMHooking_login.HookingPoints.inc
@@ -38,6 +38,7 @@ struct HookingPointData HookingPoints[] = {
{ HP_POP(console->init, HP_console_init) },
{ HP_POP(console->final, HP_console_final) },
{ HP_POP(console->display_title, HP_console_display_title) },
+ { HP_POP(console->display_gplnotice, HP_console_display_gplnotice) },
/* core */
{ HP_POP(core->shutdown_callback, HP_core_shutdown_callback) },
/* DB */
diff --git a/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc
index fe329333a..012240bb3 100644
--- a/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc
@@ -344,6 +344,32 @@ void HP_console_display_title(void) {
}
return;
}
+void HP_console_display_gplnotice(void) {
+ int hIndex = 0;
+ if( HPMHooks.count.HP_console_display_gplnotice_pre ) {
+ void (*preHookFunc) (void);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_console_display_gplnotice_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_console_display_gplnotice_pre[hIndex].func;
+ preHookFunc();
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.console.display_gplnotice();
+ }
+ if( HPMHooks.count.HP_console_display_gplnotice_post ) {
+ void (*postHookFunc) (void);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_console_display_gplnotice_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_console_display_gplnotice_post[hIndex].func;
+ postHookFunc();
+ }
+ }
+ return;
+}
/* core */
void HP_core_shutdown_callback(void) {
int hIndex = 0;
diff --git a/src/plugins/HPMHooking/HPMHooking_map.HPMHooksCore.inc b/src/plugins/HPMHooking/HPMHooking_map.HPMHooksCore.inc
index 95a9b2ce9..59844e766 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.HPMHooksCore.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.HPMHooksCore.inc
@@ -1864,6 +1864,8 @@ struct {
struct HPMHookPoint *HP_console_final_post;
struct HPMHookPoint *HP_console_display_title_pre;
struct HPMHookPoint *HP_console_display_title_post;
+ struct HPMHookPoint *HP_console_display_gplnotice_pre;
+ struct HPMHookPoint *HP_console_display_gplnotice_post;
struct HPMHookPoint *HP_core_shutdown_callback_pre;
struct HPMHookPoint *HP_core_shutdown_callback_post;
struct HPMHookPoint *HP_DB_fix_options_pre;
@@ -7681,6 +7683,8 @@ struct {
int HP_console_final_post;
int HP_console_display_title_pre;
int HP_console_display_title_post;
+ int HP_console_display_gplnotice_pre;
+ int HP_console_display_gplnotice_post;
int HP_core_shutdown_callback_pre;
int HP_core_shutdown_callback_post;
int HP_DB_fix_options_pre;
diff --git a/src/plugins/HPMHooking/HPMHooking_map.HookingPoints.inc b/src/plugins/HPMHooking/HPMHooking_map.HookingPoints.inc
index bd081e472..bc78fe8b4 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.HookingPoints.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.HookingPoints.inc
@@ -954,6 +954,7 @@ struct HookingPointData HookingPoints[] = {
{ HP_POP(console->init, HP_console_init) },
{ HP_POP(console->final, HP_console_final) },
{ HP_POP(console->display_title, HP_console_display_title) },
+ { HP_POP(console->display_gplnotice, HP_console_display_gplnotice) },
/* core */
{ HP_POP(core->shutdown_callback, HP_core_shutdown_callback) },
/* DB */
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
index 57c23f633..4c828dc56 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
@@ -24281,6 +24281,32 @@ void HP_console_display_title(void) {
}
return;
}
+void HP_console_display_gplnotice(void) {
+ int hIndex = 0;
+ if( HPMHooks.count.HP_console_display_gplnotice_pre ) {
+ void (*preHookFunc) (void);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_console_display_gplnotice_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_console_display_gplnotice_pre[hIndex].func;
+ preHookFunc();
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.console.display_gplnotice();
+ }
+ if( HPMHooks.count.HP_console_display_gplnotice_post ) {
+ void (*postHookFunc) (void);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_console_display_gplnotice_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_console_display_gplnotice_post[hIndex].func;
+ postHookFunc();
+ }
+ }
+ return;
+}
/* core */
void HP_core_shutdown_callback(void) {
int hIndex = 0;