zabbix-agent2/src/zabbix_server/reporter/report_manager.c
/******************************************************************************
 *                                                                            *
 * Function: rm_get_writer                                                    *
 *                                                                            *
 * Purpose: return writer with the specified client                           *
 *                                                                            *
 ******************************************************************************/
rm_get_writer

Purpose: return writer with the specified client
rm_get_writer Purpose : return writer with the specified client
static	zbx_rm_writer_t	*rm_get_writer(zbx_rm_t *manager, const zbx_ipc_client_t *client)
{
	int	i;
	for (i = 0; i < manager->writers.values_num; i++)
	{
		zbx_rm_writer_t	*writer = (zbx_rm_writer_t *)manager->writers.values[i];
		if (writer->client == client)
			return writer;
	}
	return NULL;
}
static zbx_rm_writer_t * rm_get_writer ( zbx_rm_t * manager , const zbx_ipc_client_t * client ) { int i ; for ( i = 0 ; i < manager -> writers . values_num ; i ++ ) { zbx_rm_writer_t * writer = ( zbx_rm_writer_t * ) manager -> writers . values [ i ] ; if ( writer -> client == client ) return writer ; } return NULL ; }
Function: rm_get_writer                                                    
                                                                            
 Purpose: return writer with the specified client
Function : rm_get_writer Purpose : return writer with the specified client