forked from enlightenment/efl
efl_debug (client): quit if not waiting and we're done sending.
This commit is contained in:
parent
b79f03c916
commit
ec75c62369
|
@ -138,6 +138,12 @@ _command_send(const char op[static 4], const void *data, unsigned int len)
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
_finished_sending(void *data EINA_UNUSED, const Efl_Event *event EINA_UNUSED)
|
||||||
|
{
|
||||||
|
if (!waiting) ecore_main_loop_quit();
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_dialer_eos(void *data EINA_UNUSED, const Efl_Event *event EINA_UNUSED)
|
_dialer_eos(void *data EINA_UNUSED, const Efl_Event *event EINA_UNUSED)
|
||||||
{
|
{
|
||||||
|
@ -243,7 +249,8 @@ main(int argc, char **argv)
|
||||||
send_copier = efl_add(EFL_IO_COPIER_CLASS, loop,
|
send_copier = efl_add(EFL_IO_COPIER_CLASS, loop,
|
||||||
efl_io_copier_source_set(efl_added, input),
|
efl_io_copier_source_set(efl_added, input),
|
||||||
efl_io_copier_destination_set(efl_added, dialer),
|
efl_io_copier_destination_set(efl_added, dialer),
|
||||||
efl_io_closer_close_on_destructor_set(efl_added, EINA_FALSE));
|
efl_io_closer_close_on_destructor_set(efl_added, EINA_FALSE),
|
||||||
|
efl_event_callback_add(efl_added, EFL_IO_COPIER_EVENT_DONE, _finished_sending, NULL));
|
||||||
if (!send_copier)
|
if (!send_copier)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "ERROR: could not create send copier\n");
|
fprintf(stderr, "ERROR: could not create send copier\n");
|
||||||
|
|
Loading…
Reference in New Issue