Source
void zbx_preprocessor_unpack_test_request(zbx_pp_item_preproc_t *preproc, zbx_variant_t *value, zbx_timespec_t *ts,
/*
** Zabbix
** Copyright (C) 2001-2023 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.
**/
/* 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 */
}