Source
void zbx_preprocessor_unpack_test_request(zbx_pp_item_preproc_t *preproc, zbx_variant_t *value, zbx_timespec_t *ts,
/*
** 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/>.
**/
/* start with 10000 to avoid conflicts with RTC messages */
/* item value data used in preprocessing manager */
typedef struct
{
zbx_uint64_t itemid; /* item id */
zbx_uint64_t hostid; /* host id */
unsigned char item_value_type; /* item value type */
AGENT_RESULT *result; /* item value (if any) */
zbx_timespec_t *ts; /* timestamp of a value */
char *error; /* error message (if any) */
unsigned char item_flags; /* item flags */
unsigned char state; /* item state */
}
zbx_preproc_item_value_t;
ZBX_PTR_VECTOR_DECL(ipcmsg, zbx_ipc_message_t *)
/* packed field data description */
typedef struct
{
const void *value; /* value to be packed */
zbx_uint32_t size; /* size of a value (can be 0 for strings) */
unsigned char type; /* field type */
}
zbx_packed_field_t;
zbx_uint32_t zbx_preprocessor_unpack_value(zbx_preproc_item_value_t *value, unsigned char *data);