Skip to content
Permalink
Browse files

HPM Hooks Update

  • Loading branch information...
Asheraf committed Aug 27, 2019
1 parent 7c88915 commit 6ea8e59e52e8046c5ea8d3a42f3a67d06564e1f7
@@ -7934,8 +7934,14 @@ typedef bool (*HPMHOOK_pre_status_readdb_job2) (char **fields[], int *columns, i
typedef bool (*HPMHOOK_post_status_readdb_job2) (bool retVal___, char *fields[], int columns, int current);
typedef bool (*HPMHOOK_pre_status_readdb_sizefix) (char **fields[], int *columns, int *current);
typedef bool (*HPMHOOK_post_status_readdb_sizefix) (bool retVal___, char *fields[], int columns, int current);
typedef bool (*HPMHOOK_pre_status_readdb_scconfig) (char **fields[], int *columns, int *current);
typedef bool (*HPMHOOK_post_status_readdb_scconfig) (bool retVal___, char *fields[], int columns, int current);
typedef bool (*HPMHOOK_pre_status_read_scdb_libconfig) (void);
typedef bool (*HPMHOOK_post_status_read_scdb_libconfig) (bool retVal___);
typedef bool (*HPMHOOK_pre_status_read_scdb_libconfig_sub) (struct config_setting_t **it, int *idx, const char **source);
typedef bool (*HPMHOOK_post_status_read_scdb_libconfig_sub) (bool retVal___, struct config_setting_t *it, int idx, const char *source);
typedef bool (*HPMHOOK_pre_status_read_scdb_libconfig_sub_flag) (struct config_setting_t **it, int *type, const char **source);
typedef bool (*HPMHOOK_post_status_read_scdb_libconfig_sub_flag) (bool retVal___, struct config_setting_t *it, int type, const char *source);
typedef bool (*HPMHOOK_pre_status_read_scdb_libconfig_sub_flag_additional) (struct config_setting_t **it, int *type, const char **source);
typedef bool (*HPMHOOK_post_status_read_scdb_libconfig_sub_flag_additional) (bool retVal___, struct config_setting_t *it, int type, const char *source);
typedef void (*HPMHOOK_pre_status_read_job_db) (void);
typedef void (*HPMHOOK_post_status_read_job_db) (void);
typedef void (*HPMHOOK_pre_status_read_job_db_sub) (int *idx, const char **name, struct config_setting_t **jdb);
@@ -6456,8 +6456,14 @@ struct {
struct HPMHookPoint *HP_status_readdb_job2_post;
struct HPMHookPoint *HP_status_readdb_sizefix_pre;
struct HPMHookPoint *HP_status_readdb_sizefix_post;
struct HPMHookPoint *HP_status_readdb_scconfig_pre;
struct HPMHookPoint *HP_status_readdb_scconfig_post;
struct HPMHookPoint *HP_status_read_scdb_libconfig_pre;
struct HPMHookPoint *HP_status_read_scdb_libconfig_post;
struct HPMHookPoint *HP_status_read_scdb_libconfig_sub_pre;
struct HPMHookPoint *HP_status_read_scdb_libconfig_sub_post;
struct HPMHookPoint *HP_status_read_scdb_libconfig_sub_flag_pre;
struct HPMHookPoint *HP_status_read_scdb_libconfig_sub_flag_post;
struct HPMHookPoint *HP_status_read_scdb_libconfig_sub_flag_additional_pre;
struct HPMHookPoint *HP_status_read_scdb_libconfig_sub_flag_additional_post;
struct HPMHookPoint *HP_status_read_job_db_pre;
struct HPMHookPoint *HP_status_read_job_db_post;
struct HPMHookPoint *HP_status_read_job_db_sub_pre;
@@ -13227,8 +13233,14 @@ struct {
int HP_status_readdb_job2_post;
int HP_status_readdb_sizefix_pre;
int HP_status_readdb_sizefix_post;
int HP_status_readdb_scconfig_pre;
int HP_status_readdb_scconfig_post;
int HP_status_read_scdb_libconfig_pre;
int HP_status_read_scdb_libconfig_post;
int HP_status_read_scdb_libconfig_sub_pre;
int HP_status_read_scdb_libconfig_sub_post;
int HP_status_read_scdb_libconfig_sub_flag_pre;
int HP_status_read_scdb_libconfig_sub_flag_post;
int HP_status_read_scdb_libconfig_sub_flag_additional_pre;
int HP_status_read_scdb_libconfig_sub_flag_additional_post;
int HP_status_read_job_db_pre;
int HP_status_read_job_db_post;
int HP_status_read_job_db_sub_pre;
@@ -3300,7 +3300,10 @@ struct HookingPointData HookingPoints[] = {
{ HP_POP(status->natural_heal_timer, HP_status_natural_heal_timer) },
{ HP_POP(status->readdb_job2, HP_status_readdb_job2) },
{ HP_POP(status->readdb_sizefix, HP_status_readdb_sizefix) },
{ HP_POP(status->readdb_scconfig, HP_status_readdb_scconfig) },
{ HP_POP(status->read_scdb_libconfig, HP_status_read_scdb_libconfig) },
{ HP_POP(status->read_scdb_libconfig_sub, HP_status_read_scdb_libconfig_sub) },
{ HP_POP(status->read_scdb_libconfig_sub_flag, HP_status_read_scdb_libconfig_sub_flag) },
{ HP_POP(status->read_scdb_libconfig_sub_flag_additional, HP_status_read_scdb_libconfig_sub_flag_additional) },
{ HP_POP(status->read_job_db, HP_status_read_job_db) },
{ HP_POP(status->read_job_db_sub, HP_status_read_job_db_sub) },
{ HP_POP(status->set_sc, HP_status_set_sc) },
@@ -86386,29 +86386,110 @@ bool HP_status_readdb_sizefix(char *fields[], int columns, int current) {
}
return retVal___;
}
bool HP_status_readdb_scconfig(char *fields[], int columns, int current) {
bool HP_status_read_scdb_libconfig(void) {
int hIndex = 0;
bool retVal___ = false;
if (HPMHooks.count.HP_status_readdb_scconfig_pre > 0) {
bool (*preHookFunc) (char **fields[], int *columns, int *current);
if (HPMHooks.count.HP_status_read_scdb_libconfig_pre > 0) {
bool (*preHookFunc) (void);
*HPMforce_return = false;
for (hIndex = 0; hIndex < HPMHooks.count.HP_status_readdb_scconfig_pre; hIndex++) {
preHookFunc = HPMHooks.list.HP_status_readdb_scconfig_pre[hIndex].func;
retVal___ = preHookFunc(&fields, &columns, &current);
for (hIndex = 0; hIndex < HPMHooks.count.HP_status_read_scdb_libconfig_pre; hIndex++) {
preHookFunc = HPMHooks.list.HP_status_read_scdb_libconfig_pre[hIndex].func;
retVal___ = preHookFunc();
}
if (*HPMforce_return) {
*HPMforce_return = false;
return retVal___;
}
}
{
retVal___ = HPMHooks.source.status.readdb_scconfig(fields, columns, current);
retVal___ = HPMHooks.source.status.read_scdb_libconfig();
}
if (HPMHooks.count.HP_status_readdb_scconfig_post > 0) {
bool (*postHookFunc) (bool retVal___, char *fields[], int columns, int current);
for (hIndex = 0; hIndex < HPMHooks.count.HP_status_readdb_scconfig_post; hIndex++) {
postHookFunc = HPMHooks.list.HP_status_readdb_scconfig_post[hIndex].func;
retVal___ = postHookFunc(retVal___, fields, columns, current);
if (HPMHooks.count.HP_status_read_scdb_libconfig_post > 0) {
bool (*postHookFunc) (bool retVal___);
for (hIndex = 0; hIndex < HPMHooks.count.HP_status_read_scdb_libconfig_post; hIndex++) {
postHookFunc = HPMHooks.list.HP_status_read_scdb_libconfig_post[hIndex].func;
retVal___ = postHookFunc(retVal___);
}
}
return retVal___;
}
bool HP_status_read_scdb_libconfig_sub(struct config_setting_t *it, int idx, const char *source) {
int hIndex = 0;
bool retVal___ = false;
if (HPMHooks.count.HP_status_read_scdb_libconfig_sub_pre > 0) {
bool (*preHookFunc) (struct config_setting_t **it, int *idx, const char **source);
*HPMforce_return = false;
for (hIndex = 0; hIndex < HPMHooks.count.HP_status_read_scdb_libconfig_sub_pre; hIndex++) {
preHookFunc = HPMHooks.list.HP_status_read_scdb_libconfig_sub_pre[hIndex].func;
retVal___ = preHookFunc(&it, &idx, &source);
}
if (*HPMforce_return) {
*HPMforce_return = false;
return retVal___;
}
}
{
retVal___ = HPMHooks.source.status.read_scdb_libconfig_sub(it, idx, source);
}
if (HPMHooks.count.HP_status_read_scdb_libconfig_sub_post > 0) {
bool (*postHookFunc) (bool retVal___, struct config_setting_t *it, int idx, const char *source);
for (hIndex = 0; hIndex < HPMHooks.count.HP_status_read_scdb_libconfig_sub_post; hIndex++) {
postHookFunc = HPMHooks.list.HP_status_read_scdb_libconfig_sub_post[hIndex].func;
retVal___ = postHookFunc(retVal___, it, idx, source);
}
}
return retVal___;
}
bool HP_status_read_scdb_libconfig_sub_flag(struct config_setting_t *it, int type, const char *source) {
int hIndex = 0;
bool retVal___ = false;
if (HPMHooks.count.HP_status_read_scdb_libconfig_sub_flag_pre > 0) {
bool (*preHookFunc) (struct config_setting_t **it, int *type, const char **source);
*HPMforce_return = false;
for (hIndex = 0; hIndex < HPMHooks.count.HP_status_read_scdb_libconfig_sub_flag_pre; hIndex++) {
preHookFunc = HPMHooks.list.HP_status_read_scdb_libconfig_sub_flag_pre[hIndex].func;
retVal___ = preHookFunc(&it, &type, &source);
}
if (*HPMforce_return) {
*HPMforce_return = false;
return retVal___;
}
}
{
retVal___ = HPMHooks.source.status.read_scdb_libconfig_sub_flag(it, type, source);
}
if (HPMHooks.count.HP_status_read_scdb_libconfig_sub_flag_post > 0) {
bool (*postHookFunc) (bool retVal___, struct config_setting_t *it, int type, const char *source);
for (hIndex = 0; hIndex < HPMHooks.count.HP_status_read_scdb_libconfig_sub_flag_post; hIndex++) {
postHookFunc = HPMHooks.list.HP_status_read_scdb_libconfig_sub_flag_post[hIndex].func;
retVal___ = postHookFunc(retVal___, it, type, source);
}
}
return retVal___;
}
bool HP_status_read_scdb_libconfig_sub_flag_additional(struct config_setting_t *it, int type, const char *source) {
int hIndex = 0;
bool retVal___ = false;
if (HPMHooks.count.HP_status_read_scdb_libconfig_sub_flag_additional_pre > 0) {
bool (*preHookFunc) (struct config_setting_t **it, int *type, const char **source);
*HPMforce_return = false;
for (hIndex = 0; hIndex < HPMHooks.count.HP_status_read_scdb_libconfig_sub_flag_additional_pre; hIndex++) {
preHookFunc = HPMHooks.list.HP_status_read_scdb_libconfig_sub_flag_additional_pre[hIndex].func;
retVal___ = preHookFunc(&it, &type, &source);
}
if (*HPMforce_return) {
*HPMforce_return = false;
return retVal___;
}
}
{
retVal___ = HPMHooks.source.status.read_scdb_libconfig_sub_flag_additional(it, type, source);
}
if (HPMHooks.count.HP_status_read_scdb_libconfig_sub_flag_additional_post > 0) {
bool (*postHookFunc) (bool retVal___, struct config_setting_t *it, int type, const char *source);
for (hIndex = 0; hIndex < HPMHooks.count.HP_status_read_scdb_libconfig_sub_flag_additional_post; hIndex++) {
postHookFunc = HPMHooks.list.HP_status_read_scdb_libconfig_sub_flag_additional_post[hIndex].func;
retVal___ = postHookFunc(retVal___, it, type, source);
}
}
return retVal___;

0 comments on commit 6ea8e59

Please sign in to comment.
You can’t perform that action at this time.