Source
zbx_pp_item_preproc_t *zbx_pp_item_preproc_create(unsigned char type, unsigned char value_type, unsigned char flags);
/*
** Zabbix
** Copyright (C) 2001-2022 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** 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 General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
typedef void (*zbx_pp_notify_cb_t)(void *data);
/* one preprocessing step history */
typedef struct
{
int index;
zbx_variant_t value;
zbx_timespec_t ts;
}
zbx_pp_step_history_t;
ZBX_VECTOR_DECL(pp_step_history, zbx_pp_step_history_t)
/* item preprocessing history for preprocessing steps using previous values */
typedef struct
{
zbx_vector_pp_step_history_t step_history;
}
zbx_pp_history_t;
zbx_pp_history_t *zbx_pp_history_create(int history_num);
void zbx_pp_history_init(zbx_pp_history_t *history);
void zbx_pp_history_clear(zbx_pp_history_t *history);
void zbx_pp_history_reserve(zbx_pp_history_t *history, int history_num);
void zbx_pp_history_add(zbx_pp_history_t *history, int index, zbx_variant_t *value, zbx_timespec_t ts);
typedef enum
{
ZBX_PP_PROCESS_PARALLEL,
ZBX_PP_PROCESS_SERIAL
}
zbx_pp_process_mode_t;
typedef struct
{