zabbix-agent2/src/libs/zbxdbcache/dbconfig.c
/******************************************************************************
 *                                                                            *
 * Function: DCget_item_unsupported_count                                     *
 *                                                                            *
 * Purpose: return the number of active unsupported items                     *
 *                                                                            *
 * Parameters: hostid - [IN] the host id, pass 0 to specify all hosts         *
 *                                                                            *
 * Return value: the number of active unsupported items                       *
 *                                                                            *
 ******************************************************************************/
DCget_item_unsupported_count

Purpose: return the number of active unsupported items

Parameters: hostid - [IN] the host id, pass 0 to specify all hosts

Return value: the number of active unsupported items
DCget_item_unsupported_count Purpose : return the number of active unsupported items Parameters : hostid - [ IN ] the host id pass 0 to specify all hosts Return value : the number of active unsupported items
zbx_uint64_t	DCget_item_unsupported_count(zbx_uint64_t hostid)
{
	zbx_uint64_t		count;
	const ZBX_DC_HOST	*dc_host;
	WRLOCK_CACHE;
	dc_status_update();
	if (0 == hostid)
		count = config->status->items_active_notsupported;
	else if (NULL != (dc_host = (ZBX_DC_HOST *)zbx_hashset_search(&config->hosts, &hostid)))
		count = dc_host->items_active_notsupported;
	else
		count = 0;
	UNLOCK_CACHE;
	return count;
}
zbx_uint64_t DCget_item_unsupported_count ( zbx_uint64_t hostid ) { zbx_uint64_t count ; const ZBX_DC_HOST * dc_host ; WRLOCK_CACHE ; dc_status_update ( ) ; if ( 0 == hostid ) count = config -> status -> items_active_notsupported ; else if ( NULL != ( dc_host = ( ZBX_DC_HOST * ) zbx_hashset_search ( & config -> hosts , & hostid ) ) ) count = dc_host -> items_active_notsupported ; else count = 0 ; UNLOCK_CACHE ; return count ; }
Function: DCget_item_unsupported_count                                     
                                                                            
 Purpose: return the number of active unsupported items                     
                                                                            
 Parameters: hostid - [IN] the host id, pass 0 to specify all hosts         
                                                                            
 Return value: the number of active unsupported items
Function : DCget_item_unsupported_count Purpose : return the number of active unsupported items Parameters : hostid - [ IN ] the host id pass 0 to specify all hosts Return value : the number of active unsupported items