From 4855bbd57514e85535c4ab950bed2483ba119d50 Mon Sep 17 00:00:00 2001 From: discomfitor Date: Sat, 23 Jul 2011 03:14:42 +0000 Subject: [PATCH] +ecore_con_url_url_get git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@61606 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- ChangeLog | 3 +++ src/lib/ecore_con/Ecore_Con.h | 8 ++++++++ src/lib/ecore_con/ecore_con_url.c | 16 ++++++++++++++++ 3 files changed, 27 insertions(+) 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) -- 2.7.4