Source
/*
** 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/>.
**/
/* zbx_module_api_version() MUST return this constant */
/* old name alias is kept for source compatibility only, SHOULD NOT be used */
/* HINT: For conditional compilation with different module.h versions modules can use: */
/* #if ZBX_MODULE_API_VERSION == X */
/* ... */
/* #endif */
/* flags for command */
/* item accepts either optional or mandatory parameters */
/* item is defined in a loadable module */
/* item is defined as user parameter */
typedef enum
{
REQUEST_PARAMETER_TYPE_UNDEFINED = 0,
REQUEST_PARAMETER_TYPE_STRING,
REQUEST_PARAMETER_TYPE_ARRAY
}
zbx_request_parameter_type_t;
/* agent request structure */
typedef struct
{
char *key;
int nparam;
char **params;
zbx_uint64_t lastlogsize;
int mtime;
zbx_request_parameter_type_t *types;
int timeout;
}