aboutsummaryrefslogtreecommitdiffstats
path: root/reference
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-03-09 15:54:38 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-03-09 15:54:38 +0100
commit679c89d98d93f6853bffccb135eb50447b8efffe (patch)
treed3beed24080de2a5d1df418d611bde6a1e2c67e1 /reference
parentMore fixes to adapt to latest API changes (diff)
downloadexamples-679c89d98d93f6853bffccb135eb50447b8efffe.tar.gz
Adapt to latest event names
Diffstat (limited to 'reference')
-rw-r--r--reference/c/core/src/core_event.c4
-rw-r--r--reference/c/core/src/core_idler.c2
-rw-r--r--reference/c/core/src/core_poll.c2
-rw-r--r--reference/c/eina/src/eina_future.c6
-rw-r--r--reference/c/net/src/net_io.c2
-rw-r--r--reference/c/net/src/net_io_buffered.c2
-rw-r--r--reference/c/net/src/net_session.c2
7 files changed, 10 insertions, 10 deletions
diff --git a/reference/c/core/src/core_event.c b/reference/c/core/src/core_event.c
index f62f25c4..b4403bc1 100644
--- a/reference/c/core/src/core_event.c
+++ b/reference/c/core/src/core_event.c
@@ -69,7 +69,7 @@ _events_freeze(Efl_Loop *mainloop)
efl_add(EFL_LOOP_TIMER_CLASS, mainloop,
efl_name_set(efl_added, "timer2"),
efl_loop_timer_interval_set(efl_added, .1),
- efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TICK, _freezethaw_cb, mainloop));
+ efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TIMER_TICK, _freezethaw_cb, mainloop));
}
static void
@@ -90,7 +90,7 @@ _timer_cb(void *data EINA_UNUSED, const Efl_Event *event)
}
EFL_CALLBACKS_ARRAY_DEFINE(_callback_array,
-{ EFL_LOOP_TIMER_EVENT_TICK, _timer_cb },
+{ EFL_LOOP_TIMER_EVENT_TIMER_TICK, _timer_cb },
{ EFL_EVENT_DEL, _del_obj_cb })
static void
diff --git a/reference/c/core/src/core_idler.c b/reference/c/core/src/core_idler.c
index 48f07a28..386851eb 100644
--- a/reference/c/core/src/core_idler.c
+++ b/reference/c/core/src/core_idler.c
@@ -60,7 +60,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
efl_add(EFL_LOOP_TIMER_CLASS, loop,
efl_loop_timer_interval_set(efl_added, 0.0005),
- efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TICK, _timer_cb, NULL));
+ efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TIMER_TICK, _timer_cb, NULL));
}
EFL_MAIN()
diff --git a/reference/c/core/src/core_poll.c b/reference/c/core/src/core_poll.c
index 38de6a44..7cab2d59 100644
--- a/reference/c/core/src/core_poll.c
+++ b/reference/c/core/src/core_poll.c
@@ -64,7 +64,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
efl_add(EFL_LOOP_TIMER_CLASS, loop,
efl_loop_timer_interval_set(efl_added, 30),
- efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TICK, _timer_cb, NULL));
+ efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TIMER_TICK, _timer_cb, NULL));
}
EFL_MAIN()
diff --git a/reference/c/eina/src/eina_future.c b/reference/c/eina/src/eina_future.c
index 774118a2..62326255 100644
--- a/reference/c/eina/src/eina_future.c
+++ b/reference/c/eina/src/eina_future.c
@@ -103,7 +103,7 @@ _test1_simple_future(Efl_Loop *loop)
// simulate a delayed promise resolve.
efl_add(EFL_LOOP_TIMER_CLASS, loop,
efl_loop_timer_interval_set(efl_added, 1),
- efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TICK,
+ efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TIMER_TICK,
_test1_resolve, promise));
}
@@ -154,7 +154,7 @@ _test2_failed_future(Efl_Loop *loop)
// simulate a delayed promise rejection.
efl_add(EFL_LOOP_TIMER_CLASS, loop,
efl_loop_timer_interval_set(efl_added, 1),
- efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TICK,
+ efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TIMER_TICK,
_test2_reject, promise));
}
@@ -278,7 +278,7 @@ _test4_chained_future(Efl_Loop *loop)
// simulate a delayed promise resolve.
efl_add(EFL_LOOP_TIMER_CLASS, loop,
efl_loop_timer_interval_set(efl_added, 1),
- efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TICK,
+ efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TIMER_TICK,
_test4_resolve, promise));
}
diff --git a/reference/c/net/src/net_io.c b/reference/c/net/src/net_io.c
index 6ba33dd8..f4daed69 100644
--- a/reference/c/net/src/net_io.c
+++ b/reference/c/net/src/net_io.c
@@ -197,7 +197,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev)
/* 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/reference/c/net/src/net_io_buffered.c b/reference/c/net/src/net_io_buffered.c
index a3aa2f89..651c6444 100644
--- a/reference/c/net/src/net_io_buffered.c
+++ b/reference/c/net/src/net_io_buffered.c
@@ -138,7 +138,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev)
/* 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/reference/c/net/src/net_session.c b/reference/c/net/src/net_session.c
index d08acb13..ab5ec6bd 100644
--- a/reference/c/net/src/net_session.c
+++ b/reference/c/net/src/net_session.c
@@ -134,7 +134,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev)
// Wait for 10 seconds before exiting this example
efl_add(EFL_LOOP_TIMER_CLASS, loop,
efl_loop_timer_interval_set(efl_added, 10.0),
- efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TICK,
+ efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TIMER_TICK,
_quit_cb, NULL));
}
EFL_MAIN()