zabbix-agent2/src/libs/zbxdbcache/dbconfig.c
/******************************************************************************
 *                                                                            *
 * Function: DCconfig_check_trigger_dependencies                              *
 *                                                                            *
 * Purpose: check whether any of trigger dependencies have value PROBLEM      *
 *                                                                            *
 * Return value: SUCCEED - trigger can change its value                       *
 *               FAIL - otherwise                                             *
 *                                                                            *
 * Author: Alexei Vladishev, Aleksandrs Saveljevs                             *
 *                                                                            *
 ******************************************************************************/
DCconfig_check_trigger_dependencies

Purpose: check whether any of trigger dependencies have value PROBLEM

Return value: SUCCEED - trigger can change its value
FAIL - otherwise

Author: Alexei Vladishev, Aleksandrs Saveljevs
DCconfig_check_trigger_dependencies Purpose : check whether any of trigger dependencies have value PROBLEM Return value : SUCCEED - trigger can change its value FAIL - otherwise Author : Alexei Vladishev Aleksandrs Saveljevs
int	DCconfig_check_trigger_dependencies(zbx_uint64_t triggerid)
{
	int				ret = SUCCEED;
	const ZBX_DC_TRIGGER_DEPLIST	*trigdep;
	RDLOCK_CACHE;
	if (NULL != (trigdep = (const ZBX_DC_TRIGGER_DEPLIST *)zbx_hashset_search(&config->trigdeps, &triggerid)))
		ret = DCconfig_check_trigger_dependencies_rec(trigdep, 0, NULL, NULL);
	UNLOCK_CACHE;
	return ret;
}
int DCconfig_check_trigger_dependencies ( zbx_uint64_t triggerid ) { int ret = SUCCEED ; const ZBX_DC_TRIGGER_DEPLIST * trigdep ; RDLOCK_CACHE ; if ( NULL != ( trigdep = ( const ZBX_DC_TRIGGER_DEPLIST * ) zbx_hashset_search ( & config -> trigdeps , & triggerid ) ) ) ret = DCconfig_check_trigger_dependencies_rec ( trigdep , 0 , NULL , NULL ) ; UNLOCK_CACHE ; return ret ; }
Function: DCconfig_check_trigger_dependencies                              
                                                                            
 Purpose: check whether any of trigger dependencies have value PROBLEM      
                                                                            
 Return value: SUCCEED - trigger can change its value                       
               FAIL - otherwise                                             
                                                                            
 Author: Alexei Vladishev, Aleksandrs Saveljevs
Function : DCconfig_check_trigger_dependencies Purpose : check whether any of trigger dependencies have value PROBLEM Return value : SUCCEED - trigger can change its value FAIL - otherwise Author : Alexei Vladishev Aleksandrs Saveljevs