summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con/efl_net_socket_windows.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-02-22 08:50:02 -0500
committerMike Blumenkrantz <zmike@samsung.com>2019-02-22 08:50:02 -0500
commit421bf2d0a3f8783d60be952abade6aeef7224c55 (patch)
tree9c9c864809ab443ba829c477347fd33805883b91 /src/lib/ecore_con/efl_net_socket_windows.c
parent89b62fd22549a81104255b47db410ae598eac368 (diff)
api: add bool data to efl.io.reader/writer 'changed' events
Summary: changed events should always be triggered with the accompanying changed data to reduce function calls ref T7600, T7599 Reviewers: cedric Reviewed By: cedric Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7600, T7599 Differential Revision: https://phab.enlightenment.org/D7984
Diffstat (limited to 'src/lib/ecore_con/efl_net_socket_windows.c')
-rw-r--r--src/lib/ecore_con/efl_net_socket_windows.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_con/efl_net_socket_windows.c b/src/lib/ecore_con/efl_net_socket_windows.c
index c69d0a8b6d..0aaa8ed221 100644
--- a/src/lib/ecore_con/efl_net_socket_windows.c
+++ b/src/lib/ecore_con/efl_net_socket_windows.c
@@ -816,7 +816,7 @@ _efl_net_socket_windows_efl_io_reader_can_read_set(Eo *o, Efl_Net_Socket_Windows
816 EINA_SAFETY_ON_TRUE_RETURN(efl_io_closer_closed_get(o) && can_read); 816 EINA_SAFETY_ON_TRUE_RETURN(efl_io_closer_closed_get(o) && can_read);
817 if (pd->can_read == can_read) return; 817 if (pd->can_read == can_read) return;
818 pd->can_read = can_read; 818 pd->can_read = can_read;
819 efl_event_callback_call(o, EFL_IO_READER_EVENT_CAN_READ_CHANGED, NULL); 819 efl_event_callback_call(o, EFL_IO_READER_EVENT_CAN_READ_CHANGED, (void*) (uintptr_t) can_read);
820} 820}
821 821
822EOLIAN static Eina_Bool 822EOLIAN static Eina_Bool
@@ -899,7 +899,7 @@ _efl_net_socket_windows_efl_io_writer_can_write_set(Eo *o, Efl_Net_Socket_Window
899 EINA_SAFETY_ON_TRUE_RETURN(efl_io_closer_closed_get(o) && can_write); 899 EINA_SAFETY_ON_TRUE_RETURN(efl_io_closer_closed_get(o) && can_write);
900 if (pd->can_write == can_write) return; 900 if (pd->can_write == can_write) return;
901 pd->can_write = can_write; 901 pd->can_write = can_write;
902 efl_event_callback_call(o, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, NULL); 902 efl_event_callback_call(o, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, (void*) (uintptr_t) can_write);
903} 903}
904 904
905EOLIAN static Eina_Bool 905EOLIAN static Eina_Bool