summaryrefslogtreecommitdiff
path: root/src/lib/ecore/efl_io_buffered_stream.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/efl_io_buffered_stream.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/efl_io_buffered_stream.c')
-rw-r--r--src/lib/ecore/efl_io_buffered_stream.c4
1 files changed, 2 insertions, 2 deletions
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