summaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-03-08 10:47:32 -0500
committerCedric BAIL <cedric.bail@free.fr>2019-03-08 12:17:51 -0800
commit36661a436edffa53dd1faf5d25df1a8ea8c00261 (patch)
tree9a2f7e511921e5871c96f32bc1d8b02341f7d2cd /src/examples
parent1d1effea906dc4f784625af7dfba2518ef1e90b7 (diff)
downloadefl-36661a436edffa53dd1faf5d25df1a8ea8c00261.tar.gz
efl-net: namespace events to avoid naming conflicts
Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D8260
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/ecore/efl_io_buffered_stream_example.c2
-rw-r--r--src/examples/ecore/efl_io_copier_example.c6
-rw-r--r--src/examples/ecore/efl_io_queue_example.c2
-rw-r--r--src/examples/ecore/efl_net_dialer_http_example.c6
-rw-r--r--src/examples/ecore/efl_net_dialer_simple_example.c4
-rw-r--r--src/examples/ecore/efl_net_dialer_udp_example.c6
-rw-r--r--src/examples/ecore/efl_net_dialer_unix_example.c6
-rw-r--r--src/examples/ecore/efl_net_dialer_websocket_autobahntestee.c4
-rw-r--r--src/examples/ecore/efl_net_dialer_websocket_example.c6
-rw-r--r--src/examples/ecore/efl_net_dialer_windows_example.c6
-rw-r--r--src/examples/ecore/efl_net_server_example.c2
-rw-r--r--src/examples/ecore/efl_net_server_simple_example.c2
-rw-r--r--src/examples/ecore/efl_net_socket_ssl_dialer_example.c6
-rw-r--r--src/examples/ecore/efl_net_socket_ssl_server_example.c2
14 files changed, 30 insertions, 30 deletions
diff --git a/src/examples/ecore/efl_io_buffered_stream_example.c b/src/examples/ecore/efl_io_buffered_stream_example.c
index c7fe102890..1f816c7072 100644
--- a/src/examples/ecore/efl_io_buffered_stream_example.c
+++ b/src/examples/ecore/efl_io_buffered_stream_example.c
@@ -236,7 +236,7 @@ efl_main(void *data EINA_UNUSED,
/* The TCP client to use to send/receive network data */
dialer = efl_add(EFL_NET_DIALER_TCP_CLASS, ev->object,
efl_name_set(efl_added, "dialer"),
- efl_event_callback_add(efl_added, EFL_NET_DIALER_EVENT_CONNECTED, _dialer_connected, NULL));
+ efl_event_callback_add(efl_added, EFL_NET_DIALER_EVENT_DIALER_CONNECTED, _dialer_connected, NULL));
if (!dialer)
{
fprintf(stderr, "ERROR: could not create Efl_Net_Dialer_Tcp\n");
diff --git a/src/examples/ecore/efl_io_copier_example.c b/src/examples/ecore/efl_io_copier_example.c
index 13f26b8577..d4e36b7070 100644
--- a/src/examples/ecore/efl_io_copier_example.c
+++ b/src/examples/ecore/efl_io_copier_example.c
@@ -77,9 +77,9 @@ _dialer_connected(void *data EINA_UNUSED, const Efl_Event *event)
}
EFL_CALLBACKS_ARRAY_DEFINE(dialer_cbs,
- { EFL_NET_DIALER_EVENT_RESOLVED, _dialer_resolved },
- { EFL_NET_DIALER_EVENT_ERROR, _dialer_error },
- { EFL_NET_DIALER_EVENT_CONNECTED, _dialer_connected });
+ { EFL_NET_DIALER_EVENT_DIALER_RESOLVED, _dialer_resolved },
+ { EFL_NET_DIALER_EVENT_DIALER_ERROR, _dialer_error },
+ { EFL_NET_DIALER_EVENT_DIALER_CONNECTED, _dialer_connected });
static void
_http_headers_done(void *data EINA_UNUSED, const Efl_Event *event)
diff --git a/src/examples/ecore/efl_io_queue_example.c b/src/examples/ecore/efl_io_queue_example.c
index 62e6035450..7a22feb631 100644
--- a/src/examples/ecore/efl_io_queue_example.c
+++ b/src/examples/ecore/efl_io_queue_example.c
@@ -305,7 +305,7 @@ efl_main(void *data EINA_UNUSED,
/* The TCP client to use to send/receive network data */
dialer = efl_add(EFL_NET_DIALER_TCP_CLASS, loop,
efl_name_set(efl_added, "dialer"),
- efl_event_callback_add(efl_added, EFL_NET_DIALER_EVENT_CONNECTED, _dialer_connected, NULL));
+ efl_event_callback_add(efl_added, EFL_NET_DIALER_EVENT_DIALER_CONNECTED, _dialer_connected, NULL));
if (!dialer)
{
fprintf(stderr, "ERROR: could not create Efl_Net_Dialer_Tcp\n");
diff --git a/src/examples/ecore/efl_net_dialer_http_example.c b/src/examples/ecore/efl_net_dialer_http_example.c
index 02783dc165..1289fb01ba 100644
--- a/src/examples/ecore/efl_net_dialer_http_example.c
+++ b/src/examples/ecore/efl_net_dialer_http_example.c
@@ -71,9 +71,9 @@ _http_headers_done(void *data EINA_UNUSED, const Efl_Event *event)
EFL_CALLBACKS_ARRAY_DEFINE(dialer_cbs,
{ EFL_NET_DIALER_HTTP_EVENT_HEADERS_DONE, _http_headers_done },
- { EFL_NET_DIALER_EVENT_CONNECTED, _connected },
- { EFL_NET_DIALER_EVENT_RESOLVED, _resolved },
- { EFL_NET_DIALER_EVENT_ERROR, _error },
+ { EFL_NET_DIALER_EVENT_DIALER_CONNECTED, _connected },
+ { EFL_NET_DIALER_EVENT_DIALER_RESOLVED, _resolved },
+ { EFL_NET_DIALER_EVENT_DIALER_ERROR, _error },
{ EFL_IO_CLOSER_EVENT_CLOSED, _closed },
{ EFL_IO_READER_EVENT_EOS, _eos });
diff --git a/src/examples/ecore/efl_net_dialer_simple_example.c b/src/examples/ecore/efl_net_dialer_simple_example.c
index 1285dae2f1..40243cc11f 100644
--- a/src/examples/ecore/efl_net_dialer_simple_example.c
+++ b/src/examples/ecore/efl_net_dialer_simple_example.c
@@ -176,8 +176,8 @@ _done(void *data EINA_UNUSED, const Efl_Event *event)
}
EFL_CALLBACKS_ARRAY_DEFINE(dialer_cbs,
- { EFL_NET_DIALER_EVENT_CONNECTED, _connected }, /* optional */
- { EFL_NET_DIALER_EVENT_RESOLVED, _resolved }, /* optional */
+ { EFL_NET_DIALER_EVENT_DIALER_CONNECTED, _connected }, /* optional */
+ { EFL_NET_DIALER_EVENT_DIALER_RESOLVED, _resolved }, /* optional */
{ EFL_IO_READER_EVENT_CAN_READ_CHANGED, _can_read }, /* optional, can be used to read data, here just for monitoring */
{ EFL_IO_READER_EVENT_EOS, _eos }, /* recommended, notifies no more incoming data */
{ EFL_IO_BUFFERED_STREAM_EVENT_LINE, _line }, /* optional, could use 'slice,changed' or 'can_read,changed' instead */
diff --git a/src/examples/ecore/efl_net_dialer_udp_example.c b/src/examples/ecore/efl_net_dialer_udp_example.c
index bb01b58f8a..3fef035eef 100644
--- a/src/examples/ecore/efl_net_dialer_udp_example.c
+++ b/src/examples/ecore/efl_net_dialer_udp_example.c
@@ -156,9 +156,9 @@ _error(void *data EINA_UNUSED, const Efl_Event *event)
}
EFL_CALLBACKS_ARRAY_DEFINE(dialer_cbs,
- { EFL_NET_DIALER_EVENT_CONNECTED, _connected },
- { EFL_NET_DIALER_EVENT_RESOLVED, _resolved },
- { EFL_NET_DIALER_EVENT_ERROR, _error },
+ { EFL_NET_DIALER_EVENT_DIALER_CONNECTED, _connected },
+ { EFL_NET_DIALER_EVENT_DIALER_RESOLVED, _resolved },
+ { EFL_NET_DIALER_EVENT_DIALER_ERROR, _error },
{ EFL_IO_READER_EVENT_CAN_READ_CHANGED, _can_read },
{ EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, _can_write }
);
diff --git a/src/examples/ecore/efl_net_dialer_unix_example.c b/src/examples/ecore/efl_net_dialer_unix_example.c
index f0298aed4a..8cfb2213e1 100644
--- a/src/examples/ecore/efl_net_dialer_unix_example.c
+++ b/src/examples/ecore/efl_net_dialer_unix_example.c
@@ -108,9 +108,9 @@ _error(void *data EINA_UNUSED, const Efl_Event *event)
}
EFL_CALLBACKS_ARRAY_DEFINE(dialer_cbs,
- { EFL_NET_DIALER_EVENT_CONNECTED, _connected },
- { EFL_NET_DIALER_EVENT_RESOLVED, _resolved },
- { EFL_NET_DIALER_EVENT_ERROR, _error },
+ { EFL_NET_DIALER_EVENT_DIALER_CONNECTED, _connected },
+ { EFL_NET_DIALER_EVENT_DIALER_RESOLVED, _resolved },
+ { EFL_NET_DIALER_EVENT_DIALER_ERROR, _error },
{ EFL_IO_READER_EVENT_EOS, _eos },
{ EFL_IO_READER_EVENT_CAN_READ_CHANGED, _can_read },
{ EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, _can_write }
diff --git a/src/examples/ecore/efl_net_dialer_websocket_autobahntestee.c b/src/examples/ecore/efl_net_dialer_websocket_autobahntestee.c
index 037a0aca52..45a3ed2ae4 100644
--- a/src/examples/ecore/efl_net_dialer_websocket_autobahntestee.c
+++ b/src/examples/ecore/efl_net_dialer_websocket_autobahntestee.c
@@ -247,8 +247,8 @@ EFL_CALLBACKS_ARRAY_DEFINE(dialer_cbs,
{ EFL_NET_DIALER_WEBSOCKET_EVENT_CLOSED_REASON, _ws_closed_reason },
{ EFL_NET_DIALER_WEBSOCKET_EVENT_MESSAGE_TEXT, _ws_message_text },
{ EFL_NET_DIALER_WEBSOCKET_EVENT_MESSAGE_BINARY, _ws_message_binary },
- { EFL_NET_DIALER_EVENT_CONNECTED, _connected },
- { EFL_NET_DIALER_EVENT_ERROR, _error },
+ { EFL_NET_DIALER_EVENT_DIALER_CONNECTED, _connected },
+ { EFL_NET_DIALER_EVENT_DIALER_ERROR, _error },
{ EFL_IO_CLOSER_EVENT_CLOSED, _closed },
{ EFL_IO_READER_EVENT_EOS, _eos },
{ EFL_EVENT_DEL, _del });
diff --git a/src/examples/ecore/efl_net_dialer_websocket_example.c b/src/examples/ecore/efl_net_dialer_websocket_example.c
index e46a8c78a9..a74323b3db 100644
--- a/src/examples/ecore/efl_net_dialer_websocket_example.c
+++ b/src/examples/ecore/efl_net_dialer_websocket_example.c
@@ -145,9 +145,9 @@ EFL_CALLBACKS_ARRAY_DEFINE(dialer_cbs,
{ EFL_NET_DIALER_WEBSOCKET_EVENT_CLOSED_REASON, _ws_closed_reason },
{ EFL_NET_DIALER_WEBSOCKET_EVENT_MESSAGE_TEXT, _ws_message_text },
{ EFL_NET_DIALER_WEBSOCKET_EVENT_MESSAGE_BINARY, _ws_message_binary },
- { EFL_NET_DIALER_EVENT_CONNECTED, _connected },
- { EFL_NET_DIALER_EVENT_RESOLVED, _resolved },
- { EFL_NET_DIALER_EVENT_ERROR, _error },
+ { EFL_NET_DIALER_EVENT_DIALER_CONNECTED, _connected },
+ { EFL_NET_DIALER_EVENT_DIALER_RESOLVED, _resolved },
+ { EFL_NET_DIALER_EVENT_DIALER_ERROR, _error },
{ EFL_IO_CLOSER_EVENT_CLOSED, _closed },
{ EFL_IO_READER_EVENT_EOS, _eos });
diff --git a/src/examples/ecore/efl_net_dialer_windows_example.c b/src/examples/ecore/efl_net_dialer_windows_example.c
index 44daab0bfa..e5be598eac 100644
--- a/src/examples/ecore/efl_net_dialer_windows_example.c
+++ b/src/examples/ecore/efl_net_dialer_windows_example.c
@@ -106,9 +106,9 @@ _error(void *data EINA_UNUSED, const Efl_Event *event)
}
EFL_CALLBACKS_ARRAY_DEFINE(dialer_cbs,
- { EFL_NET_DIALER_EVENT_CONNECTED, _connected },
- { EFL_NET_DIALER_EVENT_RESOLVED, _resolved },
- { EFL_NET_DIALER_EVENT_ERROR, _error },
+ { EFL_NET_DIALER_EVENT_DIALER_CONNECTED, _connected },
+ { EFL_NET_DIALER_EVENT_DIALER_RESOLVED, _resolved },
+ { EFL_NET_DIALER_EVENT_DIALER_ERROR, _error },
{ EFL_IO_READER_EVENT_EOS, _eos },
{ EFL_IO_READER_EVENT_CAN_READ_CHANGED, _can_read },
{ EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED, _can_write }
diff --git a/src/examples/ecore/efl_net_server_example.c b/src/examples/ecore/efl_net_server_example.c
index b599336960..4c3f200339 100644
--- a/src/examples/ecore/efl_net_server_example.c
+++ b/src/examples/ecore/efl_net_server_example.c
@@ -450,7 +450,7 @@ _server_serving(void *data EINA_UNUSED, const Efl_Event *event)
EFL_CALLBACKS_ARRAY_DEFINE(server_cbs,
{ EFL_NET_SERVER_EVENT_CLIENT_ADD, _server_client_add },
{ EFL_NET_SERVER_EVENT_CLIENT_REJECTED, _server_client_rejected },
- { EFL_NET_SERVER_EVENT_ERROR, _server_error },
+ { EFL_NET_SERVER_EVENT_SERVER_ERROR, _server_error },
{ EFL_NET_SERVER_EVENT_SERVING, _server_serving });
static const char * protocols[] = {
diff --git a/src/examples/ecore/efl_net_server_simple_example.c b/src/examples/ecore/efl_net_server_simple_example.c
index 6477ad2a3d..36a2d8c06d 100644
--- a/src/examples/ecore/efl_net_server_simple_example.c
+++ b/src/examples/ecore/efl_net_server_simple_example.c
@@ -254,7 +254,7 @@ _server_serving(void *data EINA_UNUSED, const Efl_Event *event)
EFL_CALLBACKS_ARRAY_DEFINE(server_cbs,
{ EFL_NET_SERVER_EVENT_CLIENT_ADD, _server_client_add },
{ EFL_NET_SERVER_EVENT_CLIENT_REJECTED, _server_client_rejected },
- { EFL_NET_SERVER_EVENT_ERROR, _server_error },
+ { EFL_NET_SERVER_EVENT_SERVER_ERROR, _server_error },
{ EFL_NET_SERVER_EVENT_SERVING, _server_serving });
static const char * protocols[] = {
diff --git a/src/examples/ecore/efl_net_socket_ssl_dialer_example.c b/src/examples/ecore/efl_net_socket_ssl_dialer_example.c
index 0bc77c3477..1ade6bc9c2 100644
--- a/src/examples/ecore/efl_net_socket_ssl_dialer_example.c
+++ b/src/examples/ecore/efl_net_socket_ssl_dialer_example.c
@@ -177,9 +177,9 @@ _error(void *data EINA_UNUSED, const Efl_Event *event)
}
EFL_CALLBACKS_ARRAY_DEFINE(dialer_cbs,
- { EFL_NET_DIALER_EVENT_CONNECTED, _connected },
- { EFL_NET_DIALER_EVENT_RESOLVED, _resolved },
- { EFL_NET_DIALER_EVENT_ERROR, _error });
+ { EFL_NET_DIALER_EVENT_DIALER_CONNECTED, _connected },
+ { EFL_NET_DIALER_EVENT_DIALER_RESOLVED, _resolved },
+ { EFL_NET_DIALER_EVENT_DIALER_ERROR, _error });
static char *
diff --git a/src/examples/ecore/efl_net_socket_ssl_server_example.c b/src/examples/ecore/efl_net_socket_ssl_server_example.c
index 33b67d2b21..6d826b6047 100644
--- a/src/examples/ecore/efl_net_socket_ssl_server_example.c
+++ b/src/examples/ecore/efl_net_socket_ssl_server_example.c
@@ -153,7 +153,7 @@ _server_serving(void *data EINA_UNUSED, const Efl_Event *event)
EFL_CALLBACKS_ARRAY_DEFINE(server_cbs,
{ EFL_NET_SERVER_EVENT_CLIENT_ADD, _server_client_add },
- { EFL_NET_SERVER_EVENT_ERROR, _server_error },
+ { EFL_NET_SERVER_EVENT_SERVER_ERROR, _server_error },
{ EFL_NET_SERVER_EVENT_SERVING, _server_serving });
static const char *ciphers_strs[] = {