zabbix-agent2/src/libs/zbxdbupgrade/dbupgrade_5030.c
/******************************************************************************
 *                                                                            *
 * Function: dbpatch_get_function_location                                    *
 *                                                                            *
 * Purpose: return function location mask (expression | recovery expression)  *
 *                                                                            *
 ******************************************************************************/
dbpatch_get_function_location

Purpose: return function location mask (expression | recovery expression)
dbpatch_get_function_location Purpose : return function location mask ( expression | recovery expression )
static unsigned char	dbpatch_get_function_location(const zbx_dbpatch_trigger_t *trigger, zbx_uint64_t functionid)
{
	unsigned char	mask = 0;
	if (TRIGGER_RECOVERY_MODE_RECOVERY_EXPRESSION != trigger->recovery_mode)
		return ZBX_DBPATCH_EXPRESSION;
	if (SUCCEED == dbpatch_find_function(trigger->expression, functionid))
		mask |= ZBX_DBPATCH_EXPRESSION;
	if (SUCCEED == dbpatch_find_function(trigger->recovery_expression, functionid))
		mask |= ZBX_DBPATCH_RECOVERY_EXPRESSION;
	return mask;
}
static unsigned char dbpatch_get_function_location ( const zbx_dbpatch_trigger_t * trigger , zbx_uint64_t functionid ) { unsigned char mask = 0 ; if ( TRIGGER_RECOVERY_MODE_RECOVERY_EXPRESSION != trigger -> recovery_mode ) return ZBX_DBPATCH_EXPRESSION ; if ( SUCCEED == dbpatch_find_function ( trigger -> expression , functionid ) ) mask |= ZBX_DBPATCH_EXPRESSION ; if ( SUCCEED == dbpatch_find_function ( trigger -> recovery_expression , functionid ) ) mask |= ZBX_DBPATCH_RECOVERY_EXPRESSION ; return mask ; }
Function: dbpatch_get_function_location                                    
                                                                            
 Purpose: return function location mask (expression | recovery expression)
Function : dbpatch_get_function_location Purpose : return function location mask ( expression | recovery expression )