summaryrefslogtreecommitdiff
path: root/src/sp_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp_utils.h')
-rw-r--r--src/sp_utils.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/sp_utils.h b/src/sp_utils.h
index 6fc59e5..8d1d44a 100644
--- a/src/sp_utils.h
+++ b/src/sp_utils.h
@@ -44,9 +44,10 @@
44 44
45#define GET_SUFFIX(x) (x == 1) ? "st" : ((x == 2) ? "nd" : "th") 45#define GET_SUFFIX(x) (x == 1) ? "st" : ((x == 2) ? "nd" : "th")
46 46
47const char* get_ipaddr(); 47const char *get_ipaddr();
48void sp_log_msg(char const *feature, int type, const char *fmt, ...); 48void sp_log_msg(char const *restrict feature, int type,
49int compute_hash(const char *const filename, char *file_hash); 49 const char *restrict fmt, ...);
50int compute_hash(const char *const restrict filename, char *restrict file_hash);
50const zend_string *sp_zval_to_zend_string(const zval *); 51const zend_string *sp_zval_to_zend_string(const zval *);
51bool sp_match_value(const zend_string *, const zend_string *, const sp_pcre *); 52bool sp_match_value(const zend_string *, const zend_string *, const sp_pcre *);
52bool sp_match_array_key(const zval *, const zend_string *, const sp_pcre *); 53bool sp_match_array_key(const zval *, const zend_string *, const sp_pcre *);
@@ -58,8 +59,8 @@ void sp_log_disable_ret(const char *restrict, const zend_string *restrict,
58int hook_function(const char *, HashTable *, zif_handler); 59int hook_function(const char *, HashTable *, zif_handler);
59int hook_regexp(const sp_pcre *, HashTable *, zif_handler); 60int hook_regexp(const sp_pcre *, HashTable *, zif_handler);
60bool check_is_in_eval_whitelist(const zend_string *const function_name); 61bool check_is_in_eval_whitelist(const zend_string *const function_name);
61int sp_log_request(const zend_string *folder, const zend_string *text_repr, 62int sp_log_request(const zend_string *restrict folder,
62 char *from); 63 const zend_string *restrict text_repr, char *from);
63bool sp_zend_string_equals(const zend_string *s1, const zend_string *s2); 64bool sp_zend_string_equals(const zend_string *s1, const zend_string *s2);
64 65
65#endif /* SP_UTILS_H */ 66#endif /* SP_UTILS_H */