Source
zbx_uint32_t zbx_alerter_serialize_result(unsigned char **data, const char *value, int errcode, const char *error,
/*
** Copyright (C) 2001-2024 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/>.
**/
/* media type data */
typedef struct
{
zbx_uint64_t mediatypeid;
int location;
/* number of currently processing alerts */
int alerts_num;
/* number of alert objects for this media type */
int refcount;
/* alert pool queue */
zbx_binary_heap_t queue;
/* media type data */
int type;
char *smtp_server;
char *smtp_helo;
char *smtp_email;
char *exec_path;
char *gsm_modem;
char *username;
char *passwd;
char *script;
char *script_bin;
char *error;
unsigned short smtp_port;
unsigned char smtp_security;
unsigned char smtp_verify_peer;
unsigned char smtp_verify_host;
unsigned char smtp_authentication;
int maxsessions;
int maxattempts;
int attempt_interval;