zabbix-agent2/src/zabbix_agent/eventlog.c
/* finalize eventlog6 and free the handles */
finalize eventlog6 and free the handles
finalize eventlog6 and free the handles
int	finalize_eventlog6(EVT_HANDLE *render_context, EVT_HANDLE *query)
{
	int		ret = FAIL;
	zabbix_log(LOG_LEVEL_DEBUG, "In %s()", __func__);
	if (NULL != *query)
	{
		EvtClose(*query);
		*query = NULL;
	}
	if (NULL != *render_context)
	{
		EvtClose(*render_context);
		*render_context = NULL;
	}
	ret = SUCCEED;
	zabbix_log(LOG_LEVEL_DEBUG, "End of %s():%s", __func__, zbx_result_string(ret));
	return ret;
}
int finalize_eventlog6 ( EVT_HANDLE * render_context , EVT_HANDLE * query ) { int ret = FAIL ; zabbix_log ( LOG_LEVEL_DEBUG , " " , __func__ ) ; if ( NULL != * query ) { EvtClose ( * query ) ; * query = NULL ; } if ( NULL != * render_context ) { EvtClose ( * render_context ) ; * render_context = NULL ; } ret = SUCCEED ; zabbix_log ( LOG_LEVEL_DEBUG , " " , __func__ , zbx_result_string ( ret ) ) ; return ret ; }
finalize eventlog6 and free the handles
finalize eventlog6 and free the handles