forked from enlightenment/efl
others: support efl_net_dialer_windows.
these are not working on windows yet due other factors, anyway add the proper ifdefs
This commit is contained in:
parent
6877ee8ad4
commit
a93c2740f2
|
@ -156,8 +156,11 @@ main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
|||
#ifdef EFL_NET_DIALER_UNIX_CLASS
|
||||
dialer = efl_add(EFL_NET_DIALER_SIMPLE_CLASS, loop,
|
||||
efl_net_dialer_simple_inner_class_set(efl_added, EFL_NET_DIALER_UNIX_CLASS));
|
||||
#elif defined(EFL_NET_DIALER_WINDOWS_CLASS)
|
||||
dialer = efl_add(EFL_NET_DIALER_SIMPLE_CLASS, loop,
|
||||
efl_net_dialer_simple_inner_class_set(efl_added, EFL_NET_DIALER_WINDOWS_CLASS));
|
||||
#else
|
||||
fprintf(stderr, "ERROR: your platform doesn't support Efl.Net.Dialer.Unix\n");
|
||||
fprintf(stderr, "ERROR: your platform doesn't support Efl.Net.Dialer.*\n");
|
||||
#endif
|
||||
if (!dialer)
|
||||
{
|
||||
|
|
|
@ -155,11 +155,14 @@ main(int argc, char **argv)
|
|||
#ifdef EFL_NET_DIALER_UNIX_CLASS
|
||||
dialer = efl_add(EFL_NET_DIALER_SIMPLE_CLASS, loop,
|
||||
efl_net_dialer_simple_inner_class_set(efl_added, EFL_NET_DIALER_UNIX_CLASS));
|
||||
#elif defined(EFL_NET_DIALER_WINDOWS_CLASS)
|
||||
dialer = efl_add(EFL_NET_DIALER_SIMPLE_CLASS, loop,
|
||||
efl_net_dialer_simple_inner_class_set(efl_added, EFL_NET_DIALER_WINDOWS_CLASS));
|
||||
#else
|
||||
/* TODO: maybe start a TCP using locahost:12345?
|
||||
* Right now eina_debug_monitor is only for AF_UNIX, so not an issue.
|
||||
*/
|
||||
fprintf(stderr, "ERROR: your platform doesn't support Efl.Net.Dialer.Unix\n");
|
||||
fprintf(stderr, "ERROR: your platform doesn't support Efl.Net.Dialer.*\n");
|
||||
#endif
|
||||
if (!dialer)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue