Source
static int execute_graphs_inserts(zbx_vector_graphs_copies_t *graphs_copies_insert, int *total_insert_gitems_count,
/*
** Zabbix
** 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 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 struct
{
zbx_uint64_t itemid;
zbx_uint64_t gitemid;
char key[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[GRAPH_ITEM_COLOR_LEN_MAX];
char color_new[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;
zbx_uint64_t update_flags;
}
graph_item_entry;
typedef struct
{