zabbix-agent2/src/libs/zbxdbcache/dbconfig.c
/******************************************************************************
 *                                                                            *
 * Function: dc_trigger_timer_create                                          *
 *                                                                            *
 * Purpose: create trigger timer based on the specified trigger               *
 *                                                                            *
 * Return value:  Created timer or NULL in the case of error.                 *
 *                                                                            *
 ******************************************************************************/
dc_trigger_timer_create

Purpose: create trigger timer based on the specified trigger

Return value:  Created timer or NULL in the case of error.
dc_trigger_timer_create Purpose : create trigger timer based on the specified trigger Return value : Created timer or NULL in the case of error .
static zbx_trigger_timer_t	*dc_trigger_timer_create(ZBX_DC_TRIGGER *trigger)
{
	zbx_trigger_timer_t	*timer;
	timer = (zbx_trigger_timer_t *)__config_mem_malloc_func(NULL, sizeof(zbx_trigger_timer_t));
	timer->type = ZBX_TRIGGER_TIMER_TRIGGER;
	timer->objectid = trigger->triggerid;
	timer->triggerid = trigger->triggerid;
	timer->revision = trigger->revision;
	timer->trend_base = ZBX_TIME_UNIT_UNKNOWN;
	timer->lock = 0;
	timer->parameter = NULL;
	trigger->timer_revision = trigger->revision;
	return timer;
}
static zbx_trigger_timer_t * dc_trigger_timer_create ( ZBX_DC_TRIGGER * trigger ) { zbx_trigger_timer_t * timer ; timer = ( zbx_trigger_timer_t * ) __config_mem_malloc_func ( NULL , sizeof ( zbx_trigger_timer_t ) ) ; timer -> type = ZBX_TRIGGER_TIMER_TRIGGER ; timer -> objectid = trigger -> triggerid ; timer -> triggerid = trigger -> triggerid ; timer -> revision = trigger -> revision ; timer -> trend_base = ZBX_TIME_UNIT_UNKNOWN ; timer -> lock = 0 ; timer -> parameter = NULL ; trigger -> timer_revision = trigger -> revision ; return timer ; }
Function: dc_trigger_timer_create                                          
                                                                            
 Purpose: create trigger timer based on the specified trigger               
                                                                            
 Return value:  Created timer or NULL in the case of error.
Function : dc_trigger_timer_create Purpose : create trigger timer based on the specified trigger Return value : Created timer or NULL in the case of error .