From: discomfitor Date: Sat, 23 Jul 2011 03:14:42 +0000 (+0000) Subject: +ecore_con_url_url_get X-Git-Tag: accepted/2.0/20130306.224007~181^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17ba0a87507766441be24510c7c8e09ac8a2c170;p=profile%2Fivi%2Fecore.git +ecore_con_url_url_get git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@61606 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/ChangeLog b/ChangeLog index 0b152c6..6bd7d59 100644 --- a/ChangeLog +++ b/ChangeLog @@ -260,3 +260,6 @@ * Ecore_IMF: Added ecore_imf_context_cursor_location_set API +2011-07-22 Mike Blumenkrantz + + * Added ecore_con_url_url_get diff --git a/src/lib/ecore_con/Ecore_Con.h b/src/lib/ecore_con/Ecore_Con.h index 6a9992a..0cd4c3e 100644 --- a/src/lib/ecore_con/Ecore_Con.h +++ b/src/lib/ecore_con/Ecore_Con.h @@ -1195,6 +1195,14 @@ EAPI void ecore_con_url_free(Ecore_Con_Url *url_con); EAPI Eina_Bool ecore_con_url_url_set(Ecore_Con_Url *url_con, const char *url); /** + * Gets the URL to send the request to. + * + * @param url_con Connection object through which the request will be sent. + * @return URL that will receive the request, NULL on failure + * @since 1.1 + */ +EAPI const char *ecore_con_url_url_get(Ecore_Con_Url *url_con); +/** * Associates data with a connection object. * * @param url_con Connection object to associate data. diff --git a/src/lib/ecore_con/ecore_con_url.c b/src/lib/ecore_con/ecore_con_url.c index 44de916..6575fc1 100644 --- a/src/lib/ecore_con/ecore_con_url.c +++ b/src/lib/ecore_con/ecore_con_url.c @@ -380,6 +380,22 @@ ecore_con_url_free(Ecore_Con_Url *url_con) #endif } +EAPI const char * +ecore_con_url_url_get(Ecore_Con_Url *url_con) +{ +#ifdef HAVE_CURL + if (!ECORE_MAGIC_CHECK(url_con, ECORE_MAGIC_CON_URL)) + { + ECORE_MAGIC_FAIL(url_con, ECORE_MAGIC_CON_URL, __func__); + return NULL; + } + return url_con->url; +#else + (void)url_con; + return NULL; +#endif +} + EAPI Eina_Bool ecore_con_url_url_set(Ecore_Con_Url *url_con, const char *url)