zabbix-agent2/src/libs/zbxdbcache/dbconfig.c
/******************************************************************************
 *                                                                            *
 * Function: DCfind_proxy                                                     *
 *                                                                            *
 * Purpose: Find a record with proxy details in configuration cache using the *
 *          proxy name                                                        *
 *                                                                            *
 * Parameters: host - [IN] proxy name                                         *
 *                                                                            *
 * Return value: pointer to record if found or NULL otherwise                 *
 *                                                                            *
 ******************************************************************************/
DCfind_proxy

Purpose: Find a record with proxy details in configuration cache using the
proxy name

Parameters: host - [IN] proxy name

Return value: pointer to record if found or NULL otherwise
DCfind_proxy Purpose : Find a record with proxy details in configuration cache using the proxy name Parameters : host - [ IN ] proxy name Return value : pointer to record if found or NULL otherwise
static ZBX_DC_HOST	*DCfind_proxy(const char *host)
{
	ZBX_DC_HOST_H	*host_p, host_p_local;
	host_p_local.host = host;
	if (NULL == (host_p = (ZBX_DC_HOST_H *)zbx_hashset_search(&config->hosts_p, &host_p_local)))
		return NULL;
	else
		return host_p->host_ptr;
}
static ZBX_DC_HOST * DCfind_proxy ( const char * host ) { ZBX_DC_HOST_H * host_p , host_p_local ; host_p_local . host = host ; if ( NULL == ( host_p = ( ZBX_DC_HOST_H * ) zbx_hashset_search ( & config -> hosts_p , & host_p_local ) ) ) return NULL ; else return host_p -> host_ptr ; }
Function: DCfind_proxy                                                     
                                                                            
 Purpose: Find a record with proxy details in configuration cache using the 
          proxy name                                                        
                                                                            
 Parameters: host - [IN] proxy name                                         
                                                                            
 Return value: pointer to record if found or NULL otherwise
Function : DCfind_proxy Purpose : Find a record with proxy details in configuration cache using the proxy name Parameters : host - [ IN ] proxy name Return value : pointer to record if found or NULL otherwise