Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndris Zeila <andris.zeila@zabbix.com>2021-03-18 17:19:28 +0300
committerAndris Zeila <andris.zeila@zabbix.com>2021-03-18 17:19:28 +0300
commit68445e0051c556b3b9bc9b88a5c8888cb901669a (patch)
tree815b8d888bc27a268500cb8563096cc9aad4df13 /include/zbxeval.h
parentdc6805ec7506bc87ef4fa5687fc6e613a97eeff0 (diff)
........S. [ZBXNEXT-6457] separated common and history function callbacks
Diffstat (limited to 'include/zbxeval.h')
-rw-r--r--include/zbxeval.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/zbxeval.h b/include/zbxeval.h
index 62611249eb3..0c8976d35b9 100644
--- a/include/zbxeval.h
+++ b/include/zbxeval.h
@@ -161,7 +161,8 @@ typedef struct
zbx_timespec_t ts;
zbx_vector_eval_token_t stack;
zbx_vector_eval_token_t ops;
- zbx_eval_function_cb_t function_cb;
+ zbx_eval_function_cb_t common_func_cb;
+ zbx_eval_function_cb_t history_func_cb;
void *data_cb;
}
zbx_eval_context_t;
@@ -179,8 +180,8 @@ void zbx_eval_deserialize(zbx_eval_context_t *ctx, const char *expression, zbx_u
const unsigned char *data);
void zbx_eval_compose_expression(const zbx_eval_context_t *ctx, char **expression);
int zbx_eval_execute(zbx_eval_context_t *ctx, const zbx_timespec_t *ts, zbx_variant_t *value, char **error);
-int zbx_eval_execute_ext(zbx_eval_context_t *ctx, const zbx_timespec_t *ts, zbx_eval_function_cb_t function_cb,
- void *data, zbx_variant_t *value, char **error);
+int zbx_eval_execute_ext(zbx_eval_context_t *ctx, const zbx_timespec_t *ts, zbx_eval_function_cb_t common_func_cb,
+ zbx_eval_function_cb_t history_func_cb, void *data, zbx_variant_t *value, char **error);
void zbx_eval_get_functionids(zbx_eval_context_t *ctx, zbx_vector_uint64_t *functionids);
void zbx_eval_get_functionids_ordered(zbx_eval_context_t *ctx, zbx_vector_uint64_t *functionids);
int zbx_eval_expand_user_macros(const zbx_eval_context_t *ctx, zbx_uint64_t *hostids, int hostids_num,