diff options
author | Gustavo Sverzut Barbieri <barbieri@profusion.mobi> | 2016-11-28 19:06:30 -0200 |
---|---|---|
committer | Gustavo Sverzut Barbieri <barbieri@profusion.mobi> | 2016-11-29 16:02:25 -0200 |
commit | b4ed72518d82c4e16485fb5bec5f382148839ea8 (patch) | |
tree | 13da6ac96715ef42d453a8dab8bb04e529a14fd6 | |
parent | 6b350fc696de250389fdabe5e901a96ac35b110d (diff) | |
download | efl-b4ed72518d82c4e16485fb5bec5f382148839ea8.tar.gz |
efl_net_dialer_http: export read size.
In the legacy wrapper I'll need that.
-rw-r--r-- | src/lib/ecore_con/ecore_con_private.h | 2 | ||||
-rw-r--r-- | src/lib/ecore_con/efl_net_dialer_http.c | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/lib/ecore_con/ecore_con_private.h b/src/lib/ecore_con/ecore_con_private.h index 45864dafdb..bf70f64292 100644 --- a/src/lib/ecore_con/ecore_con_private.h +++ b/src/lib/ecore_con/ecore_con_private.h @@ -740,4 +740,6 @@ size_t efl_net_udp_datagram_size_query(SOCKET fd); /* SSL abstraction API */ extern void *efl_net_ssl_context_connection_new(Efl_Net_Ssl_Context *context); +#define EFL_NET_DIALER_HTTP_BUFFER_RECEIVE_SIZE (1U << 14) /* 16Kb to receive */ + #endif diff --git a/src/lib/ecore_con/efl_net_dialer_http.c b/src/lib/ecore_con/efl_net_dialer_http.c index 83c85b0afa..ef2b6d2f34 100644 --- a/src/lib/ecore_con/efl_net_dialer_http.c +++ b/src/lib/ecore_con/efl_net_dialer_http.c @@ -10,8 +10,6 @@ # include <config.h> #endif -#define EFL_NET_DIALER_HTTP_BUFFER_RECEIVE_SIZE (1U << 14) /* 16Kb to receive */ - #include "Ecore.h" #include "Ecore_Con.h" #include "ecore_con_private.h" @@ -2193,4 +2191,12 @@ _efl_net_dialer_http_cookie_jar_get(Eo *o EINA_UNUSED, Efl_Net_Dialer_Http_Data return pd->cookie_jar; } +CURL * +efl_net_dialer_http_curl_get(const Eo *o) +{ + Efl_Net_Dialer_Http_Data *pd = efl_data_scope_get(o, MY_CLASS); + EINA_SAFETY_ON_NULL_RETURN_VAL(pd, NULL); + return pd->easy; +} + #include "efl_net_dialer_http.eo.c" |