summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con
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
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')
-rw-r--r--src/lib/ecore_con/efl_net_dialer_http.c4
-rw-r--r--src/lib/ecore_con/efl_net_dialer_websocket.c4
-rw-r--r--src/lib/ecore_con/efl_net_server_udp_client.c4
-rw-r--r--src/lib/ecore_con/efl_net_socket_ssl.c4
-rw-r--r--src/lib/ecore_con/efl_net_socket_windows.c4
5 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/ecore_con/efl_net_dialer_http.c b/src/lib/ecore_con/efl_net_dialer_http.c
index 20f3156..40503c8 100644
--- a/src/lib/ecore_con/efl_net_dialer_http.c
+++ b/src/lib/ecore_con/efl_net_dialer_http.c
@@ -1626,7 +1626,7 @@ _efl_net_dialer_http_efl_io_reader_can_read_set(Eo *o, Efl_Net_Dialer_Http_Data
1626 EINA_SAFETY_ON_TRUE_RETURN(efl_io_closer_closed_get(o)); 1626 EINA_SAFETY_ON_TRUE_RETURN(efl_io_closer_closed_get(o));
1627 if (pd->can_read == can_read) return; 1627 if (pd->can_read == can_read) return;
1628 pd->can_read = can_read; 1628 pd->can_read = can_read;
1629 efl_event_callback_call(o, EFL_IO_READER_EVENT_CAN_READ_CHANGED, NULL); 1629 efl_event_callback_call(o, EFL_IO_READER_EVENT_CAN_READ_CHANGED, (void*) (uintptr_t) can_read);
1630} 1630}
1631 1631
1632EOLIAN static Eina_Bool 1632EOLIAN static Eina_Bool
@@ -1714,7 +1714,7 @@ _efl_net_dialer_http_efl_io_writer_can_write_set(Eo *o, Efl_Net_Dialer_Http_Data
1714 EINA_SAFETY_ON_TRUE_RETURN(efl_io_closer_closed_get(o)); 1714 EINA_SAFETY_ON_TRUE_RETURN(efl_io_closer_closed_get(o));
1715 if (pd->can_write == can_write) return; 1715 if (pd->can_write == can_write) return;
1716 pd->can_write = can_write; 1716 pd->can_write = can_write;
1717 efl_event_callback_call(o, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, NULL); 1717 efl_event_callback_call(o, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, (void*) (uintptr_t) can_write);
1718} 1718}
1719 1719
1720static Eina_Value _efl_net_dialer_http_pending_close(Eo *o, void *data, Eina_Value value); 1720static Eina_Value _efl_net_dialer_http_pending_close(Eo *o, void *data, Eina_Value value);
diff --git a/src/lib/ecore_con/efl_net_dialer_websocket.c b/src/lib/ecore_con/efl_net_dialer_websocket.c
index 01f4418..8d8719a 100644
--- a/src/lib/ecore_con/efl_net_dialer_websocket.c
+++ b/src/lib/ecore_con/efl_net_dialer_websocket.c
@@ -1297,7 +1297,7 @@ _efl_net_dialer_websocket_efl_io_reader_can_read_set(Eo *o, Efl_Net_Dialer_Webso
1297 if (pd->streaming_mode == EFL_NET_DIALER_WEBSOCKET_STREAMING_MODE_DISABLED) return; 1297 if (pd->streaming_mode == EFL_NET_DIALER_WEBSOCKET_STREAMING_MODE_DISABLED) return;
1298 if (pd->can_read == can_read) return; 1298 if (pd->can_read == can_read) return;
1299 pd->can_read = can_read; 1299 pd->can_read = can_read;
1300 efl_event_callback_call(o, EFL_IO_READER_EVENT_CAN_READ_CHANGED, NULL); 1300 efl_event_callback_call(o, EFL_IO_READER_EVENT_CAN_READ_CHANGED, (void*) (uintptr_t) can_read);
1301} 1301}
1302 1302
1303EOLIAN static void 1303EOLIAN static void
@@ -1350,7 +1350,7 @@ _efl_net_dialer_websocket_efl_io_writer_can_write_set(Eo *o, Efl_Net_Dialer_Webs
1350 can_write = EINA_FALSE; 1350 can_write = EINA_FALSE;
1351 if (pd->can_write == can_write) return; 1351 if (pd->can_write == can_write) return;
1352 pd->can_write = can_write; 1352 pd->can_write = can_write;
1353 efl_event_callback_call(o, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, NULL); 1353 efl_event_callback_call(o, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, (void*) (uintptr_t) can_write);
1354} 1354}
1355 1355
1356EOLIAN static Eina_Error 1356EOLIAN static Eina_Error
diff --git a/src/lib/ecore_con/efl_net_server_udp_client.c b/src/lib/ecore_con/efl_net_server_udp_client.c
index 52a9d38..ec4f1fd 100644
--- a/src/lib/ecore_con/efl_net_server_udp_client.c
+++ b/src/lib/ecore_con/efl_net_server_udp_client.c
@@ -234,7 +234,7 @@ _efl_net_server_udp_client_efl_io_reader_can_read_set(Eo *o, Efl_Net_Server_Udp_
234 EINA_SAFETY_ON_TRUE_RETURN(pd->fd == INVALID_SOCKET); 234 EINA_SAFETY_ON_TRUE_RETURN(pd->fd == INVALID_SOCKET);
235 if (pd->can_read == can_read) return; 235 if (pd->can_read == can_read) return;
236 pd->can_read = can_read; 236 pd->can_read = can_read;
237 efl_event_callback_call(o, EFL_IO_READER_EVENT_CAN_READ_CHANGED, NULL); 237 efl_event_callback_call(o, EFL_IO_READER_EVENT_CAN_READ_CHANGED, (void*) (uintptr_t) can_read);
238} 238}
239 239
240EOLIAN static Eina_Bool 240EOLIAN static Eina_Bool
@@ -265,7 +265,7 @@ _efl_net_server_udp_client_efl_io_writer_can_write_set(Eo *o, Efl_Net_Server_Udp
265 EINA_SAFETY_ON_TRUE_RETURN(pd->fd == INVALID_SOCKET); 265 EINA_SAFETY_ON_TRUE_RETURN(pd->fd == INVALID_SOCKET);
266 if (pd->can_write == can_write) return; 266 if (pd->can_write == can_write) return;
267 pd->can_write = can_write; 267 pd->can_write = can_write;
268 efl_event_callback_call(o, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, NULL); 268 efl_event_callback_call(o, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, (void*) (uintptr_t) can_write);
269} 269}
270 270
271EOLIAN static Eina_Bool 271EOLIAN static Eina_Bool
diff --git a/src/lib/ecore_con/efl_net_socket_ssl.c b/src/lib/ecore_con/efl_net_socket_ssl.c
index 3f9e6ce..912a8cb 100644
--- a/src/lib/ecore_con/efl_net_socket_ssl.c
+++ b/src/lib/ecore_con/efl_net_socket_ssl.c
@@ -536,7 +536,7 @@ _efl_net_socket_ssl_efl_io_reader_can_read_set(Eo *o, Efl_Net_Socket_Ssl_Data *p
536 EINA_SAFETY_ON_NULL_RETURN(pd->sock); 536 EINA_SAFETY_ON_NULL_RETURN(pd->sock);
537 if (pd->can_read == can_read) return; 537 if (pd->can_read == can_read) return;
538 pd->can_read = can_read; 538 pd->can_read = can_read;
539 efl_event_callback_call(o, EFL_IO_READER_EVENT_CAN_READ_CHANGED, NULL); 539 efl_event_callback_call(o, EFL_IO_READER_EVENT_CAN_READ_CHANGED, (void*) (uintptr_t) can_read);
540} 540}
541 541
542EOLIAN static Eina_Bool 542EOLIAN static Eina_Bool
@@ -599,7 +599,7 @@ _efl_net_socket_ssl_efl_io_writer_can_write_set(Eo *o, Efl_Net_Socket_Ssl_Data *
599 EINA_SAFETY_ON_NULL_RETURN(pd->sock); 599 EINA_SAFETY_ON_NULL_RETURN(pd->sock);
600 if (pd->can_write == can_write) return; 600 if (pd->can_write == can_write) return;
601 pd->can_write = can_write; 601 pd->can_write = can_write;
602 efl_event_callback_call(o, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, NULL); 602 efl_event_callback_call(o, EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, (void*) (uintptr_t) can_write);
603} 603}
604 604
605EOLIAN static Eina_Bool 605EOLIAN static Eina_Bool
diff --git a/src/lib/ecore_con/efl_net_socket_windows.c b/src/lib/ecore_con/efl_net_socket_windows.c
index c69d0a8..0aaa8ed 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