zabbix-agent2/src/libs/zbxdbcache/dbconfig.c
/******************************************************************************
 *                                                                            *
 * Function: dc_compare_action_conditions_by_type                             *
 *                                                                            *
 * Purpose: compare two action conditions by their type                       *
 *                                                                            *
 * Comments: This function is used to sort action conditions by type.         *
 *                                                                            *
 ******************************************************************************/
dc_compare_action_conditions_by_type

Purpose: compare two action conditions by their type

Comments: This function is used to sort action conditions by type.
dc_compare_action_conditions_by_type Purpose : compare two action conditions by their type Comments : This function is used to sort action conditions by type .
static int	dc_compare_action_conditions_by_type(const void *d1, const void *d2)
{
	zbx_dc_action_condition_t	*c1 = *(zbx_dc_action_condition_t **)d1;
	zbx_dc_action_condition_t	*c2 = *(zbx_dc_action_condition_t **)d2;
	ZBX_RETURN_IF_NOT_EQUAL(c1->conditiontype, c2->conditiontype);
	return 0;
}
static int dc_compare_action_conditions_by_type ( const void * d1 , const void * d2 ) { zbx_dc_action_condition_t * c1 = * ( zbx_dc_action_condition_t * * ) d1 ; zbx_dc_action_condition_t * c2 = * ( zbx_dc_action_condition_t * * ) d2 ; ZBX_RETURN_IF_NOT_EQUAL ( c1 -> conditiontype , c2 -> conditiontype ) ; return 0 ; }
Function: dc_compare_action_conditions_by_type                             
                                                                            
 Purpose: compare two action conditions by their type                       
                                                                            
 Comments: This function is used to sort action conditions by type.
Function : dc_compare_action_conditions_by_type Purpose : compare two action conditions by their type Comments : This function is used to sort action conditions by type .