barbieri pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=b4ed72518d82c4e16485fb5bec5f382148839ea8

commit b4ed72518d82c4e16485fb5bec5f382148839ea8
Author: Gustavo Sverzut Barbieri <barbi...@profusion.mobi>
Date:   Mon Nov 28 19:06:30 2016 -0200

    efl_net_dialer_http: export read size.
    
    In the legacy wrapper I'll need that.
---
 src/lib/ecore_con/ecore_con_private.h   |  2 ++
 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 45864da..bf70f64 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 83c85b0..ef2b6d2 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"

-- 


Reply via email to