zabbix-agent2/src/zabbix_server/service/service_actions.c
/******************************************************************************
 *                                                                            *
 * Function: condition_match_service                                          *
 *                                                                            *
 * Purpose: match service update by service id                                *
 *                                                                            *
 ******************************************************************************/
condition_match_service

Purpose: match service update by service id
condition_match_service Purpose : match service update by service id
static int	condition_match_service(const zbx_service_action_condition_t *condition,
		const zbx_service_update_t *update)
{
	zbx_uint64_t	serviceid;
	if (SUCCEED != is_uint64(condition->value, &serviceid) || serviceid != update->service->serviceid)
		return FAIL;
	return SUCCEED;
}
static int condition_match_service ( const zbx_service_action_condition_t * condition , const zbx_service_update_t * update ) { zbx_uint64_t serviceid ; if ( SUCCEED != is_uint64 ( condition -> value , & serviceid ) || serviceid != update -> service -> serviceid ) return FAIL ; return SUCCEED ; }
Function: condition_match_service                                          
                                                                            
 Purpose: match service update by service id
Function : condition_match_service Purpose : match service update by service id