Source
int zbx_db_fetch_webhook_params(zbx_uint64_t scriptid, zbx_vector_ptr_pair_t *params, char *error, size_t error_len)
/*
** 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/>.
**/
static zbx_uint64_t remote_command_cache_size = 256 * ZBX_KIBIBYTE;
static zbx_mutex_t remote_commands_lock = ZBX_MUTEX_NULL;
static zbx_shmem_info_t *remote_commands_mem = NULL;
ZBX_SHMEM_FUNC_IMPL(__remote_commands, remote_commands_mem)
typedef struct
{
zbx_uint64_t maxid;
int commands_num;
zbx_hashset_t commands;
}
zbx_remote_commands_t;
zbx_remote_commands_t *remote_commands = NULL;
typedef struct
{
zbx_uint64_t id;
zbx_uint64_t hostid;