Source
zbx_db_add_condition_alloc(&sql, &sql_alloc, &sql_offset, "i.hostid", templateids->values, templateids->values_num);
/*
** Zabbix
** Copyright (C) 2001-2023 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** 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 General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
typedef enum
{
GRAPH_YAXIS_TYPE_CALCULATED = 0,
GRAPH_YAXIS_TYPE_FIXED,
GRAPH_YAXIS_TYPE_ITEM_VALUE
}
zbx_graph_yaxis_types_t;
typedef struct
{
zbx_uint64_t itemid;
zbx_uint64_t gitemid;
char key[ZBX_ITEM_KEY_LEN * ZBX_MAX_BYTES_IN_UTF8_CHAR + 1];
int drawtype_orig;
int drawtype_new;
int sortorder_orig;
int sortorder_new;
char color_orig[ZBX_GRAPH_ITEM_COLOR_LEN_MAX];
char color_new[ZBX_GRAPH_ITEM_COLOR_LEN_MAX];
int yaxisside_orig;
int yaxisside_new;
int calc_fnc_orig;
int calc_fnc_new;
int type_orig;
int type_new;
unsigned char flags;