zabbix-agent2/src/libs/zbxdbcache/dbconfig.c
/******************************************************************************
 *                                                                            *
 * Function: DCinterface_get_agent_availability                               *
 *                                                                            *
 * Purpose: get interface availability data for the specified agent           *
 *                                                                            *
 * Parameters: dc_interface - [IN] the interface                              *
 *             availability - [OUT] the interface availability data           *
 *                                                                            *
 * Comments: The configuration cache must be locked already.                  *
 *                                                                            *
 ******************************************************************************/
DCinterface_get_agent_availability

Purpose: get interface availability data for the specified agent

Parameters: dc_interface - [IN] the interface
availability - [OUT] the interface availability data

Comments: The configuration cache must be locked already.
DCinterface_get_agent_availability Purpose : get interface availability data for the specified agent Parameters : dc_interface - [ IN ] the interface availability - [ OUT ] the interface availability data Comments : The configuration cache must be locked already .
static void	DCinterface_get_agent_availability(const ZBX_DC_INTERFACE *dc_interface,
		zbx_agent_availability_t *agent)
{
	agent->flags = ZBX_FLAGS_AGENT_STATUS;
	agent->available = dc_interface->available;
	agent->error = zbx_strdup(agent->error, dc_interface->error);
	agent->errors_from = dc_interface->errors_from;
	agent->disable_until = dc_interface->disable_until;
}
static void DCinterface_get_agent_availability ( const ZBX_DC_INTERFACE * dc_interface , zbx_agent_availability_t * agent ) { agent -> flags = ZBX_FLAGS_AGENT_STATUS ; agent -> available = dc_interface -> available ; agent -> error = zbx_strdup ( agent -> error , dc_interface -> error ) ; agent -> errors_from = dc_interface -> errors_from ; agent -> disable_until = dc_interface -> disable_until ; }
Function: DCinterface_get_agent_availability                               
                                                                            
 Purpose: get interface availability data for the specified agent           
                                                                            
 Parameters: dc_interface - [IN] the interface                              
             availability - [OUT] the interface availability data           
                                                                            
 Comments: The configuration cache must be locked already.
Function : DCinterface_get_agent_availability Purpose : get interface availability data for the specified agent Parameters : dc_interface - [ IN ] the interface availability - [ OUT ] the interface availability data Comments : The configuration cache must be locked already .