* ecore: remove ecore_con_url_http_post_send as it expose CURL

API and is not useful to someone.


SVN revision: 53566
This commit is contained in:
Cedric BAIL 2010-10-18 12:52:46 +00:00
parent 18f7762fc0
commit 680fa431b3
2 changed files with 0 additions and 31 deletions

View File

@ -510,8 +510,6 @@ EAPI void ecore_con_url_verbose_set(Ecore_Con_Url *url_con,
Eina_Bool verbose);
EAPI void ecore_con_url_ftp_use_epsv_set(Ecore_Con_Url *url_con,
Eina_Bool use_epsv);
EAPI Eina_Bool ecore_con_url_http_post_send(Ecore_Con_Url *url_con,
void *curl_httppost);
/**
* @}

View File

@ -979,35 +979,6 @@ ecore_con_url_ftp_upload(Ecore_Con_Url *url_con, const char *filename,
#endif
}
/**
* Send a Curl httppost
* @return #EINA_TRUE on success, #EINA_FALSE on error.
*/
EAPI Eina_Bool
ecore_con_url_http_post_send(Ecore_Con_Url *url_con, void *httppost)
{
#ifdef HAVE_CURL
if (!ECORE_MAGIC_CHECK(url_con, ECORE_MAGIC_CON_URL))
{
ECORE_MAGIC_FAIL(url_con, ECORE_MAGIC_CON_URL,
"ecore_con_url_http_post_send");
return EINA_FALSE;
}
if ((url_con->active) || (!url_con->url))
return EINA_FALSE;
url_con->post = httppost;
curl_easy_setopt(url_con->curl_easy, CURLOPT_HTTPPOST, httppost);
return ecore_con_url_send(url_con, NULL, 0, NULL);
#else
return EINA_FALSE;
url_con = NULL;
#endif
}
/**
* Toggle libcurl's verbose output.
*