Source
xxxxxxxxxx
35
35
int zbx_function_validate(const char *expr, size_t *par_l, size_t *par_r, char *error, int max_error_len);
36
36
int zbx_function_validate_parameters(const char *expr, size_t *length);
37
37
int zbx_user_macro_parse(const char *macro, int *macro_r, int *context_l, int *context_r,
38
38
unsigned char *context_op);
39
39
int zbx_user_macro_parse_dyn(const char *macro, char **name, char **context, int *length,
40
40
unsigned char *context_op);
41
41
char *zbx_user_macro_unquote_context_dyn(const char *context, int len);
42
42
char *zbx_user_macro_quote_context_dyn(const char *context, int force_quote, char **error);
43
43
int zbx_function_find(const char *expr, size_t *func_pos, size_t *par_l, size_t *par_r, char *error,
44
44
int max_error_len);
45
-
void zbx_function_param_parse(const char *expr, size_t *param_pos, size_t *length, size_t *sep_pos);
46
45
char *zbx_function_param_unquote_dyn(const char *param, size_t len, int *quoted);
47
46
int zbx_function_param_quote(char **param, int forced);
48
47
char *zbx_function_get_param_dyn(const char *params, int Nparam);
49
48
49
+
#define ZBX_BACKSLASH_ESC_OFF 0
50
+
#define ZBX_BACKSLASH_ESC_ON 1
51
+
52
+
void zbx_function_param_parse_ext(const char *expr, zbx_uint32_t allowed_macros, int esc_bs, size_t *param_pos,
53
+
size_t *length, size_t *sep_pos);
54
+
void zbx_function_param_parse(const char *expr, size_t *param_pos, size_t *length, size_t *sep_pos);
55
+
void zbx_trigger_function_param_parse(const char *expr, size_t *param_pos, size_t *length, size_t *sep_pos);
56
+
void zbx_lld_trigger_function_param_parse(const char *expr, size_t *param_pos, size_t *length, size_t *sep_pos);
57
+
50
58
typedef enum
51
59
{
52
60
ZBX_FUNCTION_TYPE_UNKNOWN,
53
61
ZBX_FUNCTION_TYPE_HISTORY,
54
62
ZBX_FUNCTION_TYPE_TIMER,
55
63
ZBX_FUNCTION_TYPE_TRENDS
56
64
}
57
65
zbx_function_type_t;
58
66
59
67
zbx_function_type_t zbx_get_function_type(const char *func);