int zbx_db_fetch_webhook_params(zbx_uint64_t scriptid, zbx_vector_ptr_pair_t *params, char *error, size_t error_len)
#include "zbxexpression.h"
#include "zbx_availability_constants.h"
#include "zbx_scripts_constants.h"
#include "zbxavailability.h"
#include "zbxcacheconfig.h"
#include "zbxinterface.h"
#define REMOTE_COMMAND_NEW 0
#define REMOTE_COMMAND_RESULT_OOM 1
#define REMOTE_COMMAND_RESULT_WAIT 2
#define REMOTE_COMMAND_COMPLETED 4
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)
zbx_remote_commands_t *remote_commands = NULL;
volatile unsigned char flag;
static zbx_hash_t remote_commands_commands_hash_func(const void *data)
return ZBX_DEFAULT_UINT64_HASH_FUNC(&((const zbx_rc_command_t *)data)->id);
static int remote_commands_commands_compare_func(const void *d1, const void *d2)
const zbx_rc_command_t *command1 = (const zbx_rc_command_t *)d1;
const zbx_rc_command_t *command2 = (const zbx_rc_command_t *)d2;
ZBX_RETURN_IF_NOT_EQUAL(command1->id, command2->id);
int zbx_init_remote_commands_cache(char **error)