Source
typedef void(*zbx_flush_value_func_t)(zbx_pp_manager_t *manager, zbx_uint64_t itemid, unsigned char value_type,
/*
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
typedef void (*zbx_pp_notify_cb_t)(void *data);
/* preprocessing step execution result */
typedef struct
{
zbx_variant_t value;
zbx_variant_t value_raw;
int action;
}
zbx_pp_result_t;
ZBX_PTR_VECTOR_DECL(pp_result_ptr, zbx_pp_result_t *)
void zbx_pp_result_free(zbx_pp_result_t *result);
typedef enum
{
ZBX_PP_TASK_TEST = 1,
ZBX_PP_TASK_VALUE,
ZBX_PP_TASK_VALUE_SEQ,
ZBX_PP_TASK_DEPENDENT,
ZBX_PP_TASK_SEQUENCE
}
zbx_pp_task_type_t;
typedef struct
{
zbx_pp_task_type_t type;
zbx_uint64_t itemid;
zbx_uint64_t hostid;
void *data;
}
zbx_pp_task_t;