Source
zbx_discoverer_results_t *discoverer_result_create(zbx_uint64_t druleid, const zbx_uint64_t unique_dcheckid);
/*
** 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 druleid;
char ip[ZBX_INTERFACE_IP_LEN_MAX];
zbx_uint64_t count;
}
zbx_discoverer_check_count_t;
typedef struct
{
zbx_discoverer_queue_t *queue;
pthread_t thread;
int worker_id;
int stop;
int flags;
zbx_timekeeper_t *timekeeper;
}
zbx_discoverer_worker_t;
typedef struct
{
int workers_num;
zbx_discoverer_worker_t *workers;
zbx_vector_discoverer_jobs_ptr_t job_refs;
zbx_discoverer_queue_t queue;
zbx_hashset_t incomplete_checks_count;
zbx_hashset_t results;
pthread_mutex_t results_lock;
zbx_timekeeper_t *timekeeper;
const char *source_ip;
const char *progname;
unsigned char process_type;