zabbix-agent2/tests/libs/zbxhistory/zbx_history_get_values.c
/******************************************************************************
 *                                                                            *
 * Function: zbx_vcmock_history_dump                                          *
 *                                                                            *
 * Purpose: dumps history record vector contents to standard output           *
 *                                                                            *
 ******************************************************************************/
zbx_vcmock_history_dump

Purpose: dumps history record vector contents to standard output
zbx_vcmock_history_dump Purpose : dumps history record vector contents to standard output
static void	zbx_vcmock_history_dump(unsigned char value_type, const zbx_vector_history_record_t *values)
{
	int	i;
	char	buffer[256];
	for (i = 0; i < values->values_num; i++)
	{
		const zbx_history_record_t	*rec = &values->values[i];
		zbx_timespec_to_strtime(&rec->timestamp, buffer, sizeof(buffer));
		printf("  - %s\n", buffer);
		zbx_history_value2str(buffer, sizeof(buffer), &rec->value, value_type);
		printf("    %s\n", buffer);
	}
}
static void zbx_vcmock_history_dump ( unsigned char value_type , const zbx_vector_history_record_t * values ) { int i ; char buffer [ 256 ] ; for ( i = 0 ; i < values -> values_num ; i ++ ) { const zbx_history_record_t * rec = & values -> values [ i ] ; zbx_timespec_to_strtime ( & rec -> timestamp , buffer , sizeof ( buffer ) ) ; printf ( " \n " , buffer ) ; zbx_history_value2str ( buffer , sizeof ( buffer ) , & rec -> value , value_type ) ; printf ( " \n " , buffer ) ; } }
Function: zbx_vcmock_history_dump                                          
                                                                            
 Purpose: dumps history record vector contents to standard output
Function : zbx_vcmock_history_dump Purpose : dumps history record vector contents to standard output