net: Don't use ecore methods

This commit is contained in:
Andy Williams 2018-01-04 16:40:14 +00:00
parent 2c0fb1cb00
commit 5c4053942e
2 changed files with 6 additions and 6 deletions

View File

@ -137,7 +137,7 @@ EFL_CALLBACKS_ARRAY_DEFINE(copier_cbs,
{ EFL_IO_COPIER_EVENT_ERROR, _copier_error });
EAPI_MAIN void
efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
efl_main(void *data EINA_UNUSED, const Efl_Event *ev)
{
char *address = "example.com:80";
unsigned long buffer_limit = 128;
@ -192,9 +192,9 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
/*
* some objects such as the Efl.Io.Copier and Efl.Net.Dialer.Tcp
* depend on main loop, thus their parent must be a loop
* provider. We use the main loop itself.
* provider. We use the loop passed to our main method.
*/
loop = ecore_main_loop_get();
loop = ev->object;
/* The TCP client to use to send/receive network data */
_dialer = efl_add(EFL_NET_DIALER_TCP_CLASS, loop,

View File

@ -118,7 +118,7 @@ EFL_CALLBACKS_ARRAY_DEFINE(stream_cbs,
{ EFL_IO_BUFFERED_STREAM_EVENT_ERROR, _stream_error });
EAPI_MAIN void
efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
efl_main(void *data EINA_UNUSED, const Efl_Event *ev)
{
char *address = "example.com:80";
unsigned long buffer_limit = 128;
@ -131,9 +131,9 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
/*
* some objects such as the Efl.Io.Copier and Efl.Net.Dialer.Tcp
* depend on main loop, thus their parent must be a loop
* provider. We use the main loop itself.
* provider. We use the loop passed to our main method.
*/
loop = ecore_main_loop_get();
loop = ev->object;
/* The TCP client to use to send/receive network data */
_dialer = efl_add(EFL_NET_DIALER_TCP_CLASS, loop,