/*This function will be executed after the request served to release allocated data*/
void search_record_release_request_data(void *data)
{
    /*The data points to the search_record_req_data struct we allocated in function search_record_init_service */
    struct SearchRecord *search_record_data = (struct SearchRecord *)data;
	char url[URL_LEN];
	if(search_record_data == NULL)
		return;
	if(getMainUrl(search_record_data->full_url,url,URL_LEN) == NULL)
	{
		free(search_record_data);
		return;
	}
	ci_debug_printf(5,"request url= %s\n",search_record_data->full_url);
	parseUrl(search_record_data,&search_engine);
    /*if we had body data, release the related allocated data*/
	free(search_record_data);
}
Exemplo n.º 2
0
std::string ZFlyEmSupervisor::getStateUrl(const std::string &uuid) const
{
  return getMainUrl() + "/state/" + uuid;
}
Exemplo n.º 3
0
std::string ZFlyEmSupervisor::getCheckoutUrl(const std::string &uuid) const
{
  return getMainUrl() + "/checkout/" + uuid;
}
Exemplo n.º 4
0
std::string ZFlyEmSupervisor::getUuidsUrl() const
{
  return getMainUrl() + "/uuids";
}