Source
void pg_cache_get_updates(zbx_pg_cache_t *cache, const zbx_dc_um_handle_t *um_handle, zbx_vector_pg_update_t *groups,
/*
** 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 struct
{
int startup_time;
int supported_version;
zbx_hashset_t groups;
zbx_vector_pg_group_ptr_t group_updates;
zbx_uint64_t group_revision;
zbx_uint64_t proxy_revision;
zbx_hashset_t hostmap;
zbx_hashset_t hostmap_updates;
zbx_uint64_t hostmap_revision;
zbx_hashset_t proxies;
pthread_mutex_t lock;
}
zbx_pg_cache_t;
typedef struct
{
zbx_uint64_t objectid;
int state;
zbx_uint32_t flags;
}
zbx_pg_update_t;
ZBX_VECTOR_DECL(pg_update, zbx_pg_update_t)