efl_net_dialer_http: export read size.

In the legacy wrapper I'll need that.
This commit is contained in:
Gustavo Sverzut Barbieri 2016-11-28 19:06:30 -02:00
parent 6b350fc696
commit b4ed72518d
2 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -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"