Source
void um_mock_cache_diff(zbx_um_mock_cache_t *cache1, zbx_um_mock_cache_t *cache2, zbx_dbsync_t *gmacros,
/*
** 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.
**/
typedef struct
{
zbx_uint64_t macroid;
zbx_uint64_t hostid;
unsigned char type;
char *macro;
char *value;
}
zbx_um_mock_macro_t;
ZBX_PTR_VECTOR_DECL(um_mock_macro, zbx_um_mock_macro_t *)
typedef struct
{
zbx_uint64_t hostid;
zbx_vector_um_mock_macro_t macros;
zbx_vector_uint64_t templateids;
}
zbx_um_mock_host_t;
typedef struct
{
const char *key;
const char *value;
}
zbx_um_mock_kv_t;
ZBX_PTR_VECTOR_DECL(um_mock_kv, zbx_um_mock_kv_t *)
typedef struct
{
const char *path;
zbx_vector_um_mock_kv_t kvs;
}
zbx_um_mock_kvset_t;
ZBX_PTR_VECTOR_DECL(um_mock_kvset, zbx_um_mock_kvset_t *)