diff options
Diffstat (limited to 'src/sp_utils.h')
| -rw-r--r-- | src/sp_utils.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/sp_utils.h b/src/sp_utils.h index 10a6daa..97808ad 100644 --- a/src/sp_utils.h +++ b/src/sp_utils.h | |||
| @@ -22,12 +22,11 @@ | |||
| 22 | 22 | ||
| 23 | #define SHA256_SIZE 32 | 23 | #define SHA256_SIZE 32 |
| 24 | 24 | ||
| 25 | #define HOOK_FUNCTION(original_name, hook_table, new_function, execution) \ | 25 | #define HOOK_FUNCTION(original_name, hook_table, new_function) \ |
| 26 | hook_function(original_name, SNUFFLEUPAGUS_G(hook_table), new_function, \ | 26 | hook_function(original_name, SNUFFLEUPAGUS_G(hook_table), new_function) |
| 27 | execution) | ||
| 28 | 27 | ||
| 29 | #define HOOK_FUNCTION_BY_REGEXP(regexp, hook_table, new_function, execution) \ | 28 | #define HOOK_FUNCTION_BY_REGEXP(regexp, hook_table, new_function) \ |
| 30 | hook_regexp(regexp, SNUFFLEUPAGUS_G(hook_table), new_function, execution) | 29 | hook_regexp(regexp, SNUFFLEUPAGUS_G(hook_table), new_function) |
| 31 | 30 | ||
| 32 | #define SP_LOG_SIMULATION "simulation" | 31 | #define SP_LOG_SIMULATION "simulation" |
| 33 | #define SP_LOG_DROP "drop" | 32 | #define SP_LOG_DROP "drop" |
| @@ -54,9 +53,9 @@ void sp_log_disable(const char *restrict, const char *restrict, | |||
| 54 | void sp_log_disable_ret(const char *restrict, const char *restrict, | 53 | void sp_log_disable_ret(const char *restrict, const char *restrict, |
| 55 | const sp_disabled_function *); | 54 | const sp_disabled_function *); |
| 56 | int hook_function(const char *, HashTable *, | 55 | int hook_function(const char *, HashTable *, |
| 57 | void (*)(INTERNAL_FUNCTION_PARAMETERS), bool); | 56 | void (*)(INTERNAL_FUNCTION_PARAMETERS)); |
| 58 | int hook_regexp(const sp_pcre *, HashTable *, | 57 | int hook_regexp(const sp_pcre *, HashTable *, |
| 59 | void (*)(INTERNAL_FUNCTION_PARAMETERS), bool); | 58 | void (*)(INTERNAL_FUNCTION_PARAMETERS)); |
| 60 | bool check_is_in_eval_whitelist(const char * const function_name); | 59 | bool check_is_in_eval_whitelist(const char * const function_name); |
| 61 | 60 | ||
| 62 | #endif /* SP_UTILS_H */ | 61 | #endif /* SP_UTILS_H */ |
