summaryrefslogtreecommitdiff
path: root/src/lib/ecore
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
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')
-rw-r--r--src/lib/ecore/efl_appthread.c4
-rw-r--r--src/lib/ecore/efl_exe.c4
-rw-r--r--src/lib/ecore/efl_io_buffered_stream.c4
-rw-r--r--src/lib/ecore/efl_io_reader_fd.c2
-rw-r--r--src/lib/ecore/efl_io_writer_fd.c2
-rw-r--r--src/lib/ecore/efl_thread.c4
6 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/ecore/efl_appthread.c b/src/lib/ecore/efl_appthread.c
index 4eb190bd63..b1871dd27d 100644
--- a/src/lib/ecore/efl_appthread.c
+++ b/src/lib/ecore/efl_appthread.c
@@ -139,7 +139,7 @@ _efl_appthread_efl_io_reader_can_read_set(Eo *obj, Efl_Appthread_Data *pd, Eina_
139 else 139 else
140 efl_loop_handler_active_set(pd->fd.in_handler, 140 efl_loop_handler_active_set(pd->fd.in_handler,
141 EFL_LOOP_HANDLER_FLAGS_READ); 141 EFL_LOOP_HANDLER_FLAGS_READ);
142 efl_event_callback_call(obj, EFL_IO_READER_EVENT_CAN_READ_CHANGED, NULL); 142 efl_event_callback_call(obj, EFL_IO_READER_EVENT_CAN_READ_CHANGED, (void*) (uintptr_t) can_read);
143} 143}
144 144
145EOLIAN static Eina_Bool 145EOLIAN static Eina_Bool
@@ -231,7 +231,7 @@ _efl_appthread_efl_io_writer_can_write_set(Eo *obj, Efl_Appthread_Data *pd, Eina
231 else 231 else
232 efl_loop_handler_active_set(pd->fd.in_handler, 232 efl_loop_handler_active_set(pd->fd.in_handler,
233 EFL_LOOP_HANDLER_FLAGS_WRITE); 233 EFL_LOOP_HANDLER_FLAGS_WRITE);
234 efl_event_callback_call(obj, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, NULL); 234 efl_event_callback_call(obj, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, (void*) (uintptr_t) can_write);
235} 235}
236 236
237EOLIAN static Eina_Bool 237EOLIAN static Eina_Bool
diff --git a/src/lib/ecore/efl_exe.c b/src/lib/ecore/efl_exe.c
index 61ff4ba798..3a0bd0f587 100644
--- a/src/lib/ecore/efl_exe.c
+++ b/src/lib/ecore/efl_exe.c
@@ -759,7 +759,7 @@ _efl_exe_efl_io_reader_can_read_set(Eo *obj, Efl_Exe_Data *pd, Eina_Bool can_rea
759 else 759 else
760 efl_loop_handler_active_set(pd->fd.out_handler, 760 efl_loop_handler_active_set(pd->fd.out_handler,
761 EFL_LOOP_HANDLER_FLAGS_READ); 761 EFL_LOOP_HANDLER_FLAGS_READ);
762 efl_event_callback_call(obj, EFL_IO_READER_EVENT_CAN_READ_CHANGED, NULL); 762 efl_event_callback_call(obj, EFL_IO_READER_EVENT_CAN_READ_CHANGED, (void*) (uintptr_t) can_read);
763} 763}
764 764
765EOLIAN static Eina_Bool 765EOLIAN static Eina_Bool
@@ -857,7 +857,7 @@ _efl_exe_efl_io_writer_can_write_set(Eo *obj, Efl_Exe_Data *pd, Eina_Bool can_wr
857 else 857 else
858 efl_loop_handler_active_set(pd->fd.in_handler, 858 efl_loop_handler_active_set(pd->fd.in_handler,
859 EFL_LOOP_HANDLER_FLAGS_WRITE); 859 EFL_LOOP_HANDLER_FLAGS_WRITE);
860 efl_event_callback_call(obj, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, NULL); 860 efl_event_callback_call(obj, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, (void*) (uintptr_t) can_write);
861} 861}
862 862
863EOLIAN static Eina_Bool 863EOLIAN static Eina_Bool
diff --git a/src/lib/ecore/efl_io_buffered_stream.c b/src/lib/ecore/efl_io_buffered_stream.c
index 53b1edaf1d..f2054c2ec9 100644
--- a/src/lib/ecore/efl_io_buffered_stream.c
+++ b/src/lib/ecore/efl_io_buffered_stream.c
@@ -273,7 +273,7 @@ _efl_io_buffered_stream_efl_io_reader_can_read_set(Eo *o, Efl_Io_Buffered_Stream
273 EINA_SAFETY_ON_TRUE_RETURN(efl_io_closer_closed_get(o)); 273 EINA_SAFETY_ON_TRUE_RETURN(efl_io_closer_closed_get(o));
274 if (pd->can_read == can_read) return; 274 if (pd->can_read == can_read) return;
275 pd->can_read = can_read; 275 pd->can_read = can_read;
276 efl_event_callback_call(o, EFL_IO_READER_EVENT_CAN_READ_CHANGED, NULL); 276 efl_event_callback_call(o, EFL_IO_READER_EVENT_CAN_READ_CHANGED, (void*) (uintptr_t) can_read);
277} 277}
278 278
279EOLIAN static Eina_Bool 279EOLIAN static Eina_Bool
@@ -339,7 +339,7 @@ _efl_io_buffered_stream_efl_io_writer_can_write_set(Eo *o, Efl_Io_Buffered_Strea
339 EINA_SAFETY_ON_TRUE_RETURN(efl_io_closer_closed_get(o)); 339 EINA_SAFETY_ON_TRUE_RETURN(efl_io_closer_closed_get(o));
340 if (pd->can_write == can_write) return; 340 if (pd->can_write == can_write) return;
341 pd->can_write = can_write; 341 pd->can_write = can_write;
342 efl_event_callback_call(o, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, NULL); 342 efl_event_callback_call(o, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, (void*) (uintptr_t) can_write);
343} 343}
344 344
345EOLIAN static void 345EOLIAN static void
diff --git a/src/lib/ecore/efl_io_reader_fd.c b/src/lib/ecore/efl_io_reader_fd.c
index 670a22f20e..078af8cbf6 100644
--- a/src/lib/ecore/efl_io_reader_fd.c
+++ b/src/lib/ecore/efl_io_reader_fd.c
@@ -79,7 +79,7 @@ _efl_io_reader_fd_efl_io_reader_can_read_set(Eo *o, Efl_Io_Reader_Fd_Data *pd, E
79 EINA_SAFETY_ON_TRUE_RETURN(efl_io_reader_fd_get(o) < 0 && can_read); 79 EINA_SAFETY_ON_TRUE_RETURN(efl_io_reader_fd_get(o) < 0 && can_read);
80 if (pd->can_read == can_read) return; 80 if (pd->can_read == can_read) return;
81 pd->can_read = can_read; 81 pd->can_read = can_read;
82 efl_event_callback_call(o, EFL_IO_READER_EVENT_CAN_READ_CHANGED, NULL); 82 efl_event_callback_call(o, EFL_IO_READER_EVENT_CAN_READ_CHANGED, (void*) (uintptr_t) can_read);
83} 83}
84 84
85EOLIAN static Eina_Bool 85EOLIAN static Eina_Bool
diff --git a/src/lib/ecore/efl_io_writer_fd.c b/src/lib/ecore/efl_io_writer_fd.c
index 091bb1bb9d..50be01cef1 100644
--- a/src/lib/ecore/efl_io_writer_fd.c
+++ b/src/lib/ecore/efl_io_writer_fd.c
@@ -83,7 +83,7 @@ _efl_io_writer_fd_efl_io_writer_can_write_set(Eo *o, Efl_Io_Writer_Fd_Data *pd,
83 EINA_SAFETY_ON_TRUE_RETURN(efl_io_writer_fd_get(o) < 0 && can_write); 83 EINA_SAFETY_ON_TRUE_RETURN(efl_io_writer_fd_get(o) < 0 && can_write);
84 if (pd->can_write == can_write) return; 84 if (pd->can_write == can_write) return;
85 pd->can_write = can_write; 85 pd->can_write = can_write;
86 efl_event_callback_call(o, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, NULL); 86 efl_event_callback_call(o, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, (void*) (uintptr_t) can_write);
87} 87}
88 88
89#include "efl_io_writer_fd.eo.c" 89#include "efl_io_writer_fd.eo.c"
diff --git a/src/lib/ecore/efl_thread.c b/src/lib/ecore/efl_thread.c
index ce1ab8f6d8..bd20cd1e3b 100644
--- a/src/lib/ecore/efl_thread.c
+++ b/src/lib/ecore/efl_thread.c
@@ -892,7 +892,7 @@ _efl_thread_efl_io_reader_can_read_set(Eo *obj, Efl_Thread_Data *pd, Eina_Bool c
892 else 892 else
893 efl_loop_handler_active_set(pd->fd.out_handler, 893 efl_loop_handler_active_set(pd->fd.out_handler,
894 EFL_LOOP_HANDLER_FLAGS_READ); 894 EFL_LOOP_HANDLER_FLAGS_READ);
895 efl_event_callback_call(obj, EFL_IO_READER_EVENT_CAN_READ_CHANGED, NULL); 895 efl_event_callback_call(obj, EFL_IO_READER_EVENT_CAN_READ_CHANGED, (void*) (uintptr_t) can_read);
896} 896}
897 897
898EOLIAN static Eina_Bool 898EOLIAN static Eina_Bool
@@ -986,7 +986,7 @@ _efl_thread_efl_io_writer_can_write_set(Eo *obj, Efl_Thread_Data *pd, Eina_Bool
986 else 986 else
987 efl_loop_handler_active_set(pd->fd.in_handler, 987 efl_loop_handler_active_set(pd->fd.in_handler,
988 EFL_LOOP_HANDLER_FLAGS_WRITE); 988 EFL_LOOP_HANDLER_FLAGS_WRITE);
989 efl_event_callback_call(obj, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, NULL); 989 efl_event_callback_call(obj, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, (void*) (uintptr_t) can_write);
990} 990}
991 991
992EOLIAN static Eina_Bool 992EOLIAN static Eina_Bool