Source
static int vmware_service_reset_event_history_collector(CURL *easyhandle, const char *event_session, char **error)
/*
** 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
{
zbx_uint64_t id;
xmlNode *xml_node;
time_t created_time;
}
zbx_id_xmlnode_t;
ZBX_VECTOR_DECL(id_xmlnode, zbx_id_xmlnode_t)
ZBX_VECTOR_IMPL(id_xmlnode, zbx_id_xmlnode_t)
/* VMware events host information */
typedef struct
{
const char *node_name;
int flag;
char *name;
}
event_hostinfo_node_t;
static zbx_hashset_t evt_msg_strpool;
/******************************************************************************
* *
* Purpose: initialization of strpool resources *
* *
******************************************************************************/
static void evt_msg_strpool_init(void)
{
zbx_hashset_create(&evt_msg_strpool, 100, vmware_strpool_hash_func, vmware_strpool_compare_func);
}
/******************************************************************************
* *