summaryrefslogtreecommitdiff
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
parentaad5b641c89c5bbe92ef8c3d83ea1cbc887c4034 (diff)
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)
69 efl_add(EFL_LOOP_TIMER_CLASS, mainloop, 69 efl_add(EFL_LOOP_TIMER_CLASS, mainloop,
70 efl_name_set(efl_added, "timer2"), 70 efl_name_set(efl_added, "timer2"),
71 efl_loop_timer_interval_set(efl_added, .1), 71 efl_loop_timer_interval_set(efl_added, .1),
72 efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TICK, _freezethaw_cb, mainloop)); 72 efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TIMER_TICK, _freezethaw_cb, mainloop));
73} 73}
74 74
75static void 75static void
@@ -90,7 +90,7 @@ _timer_cb(void *data EINA_UNUSED, const Efl_Event *event)
90} 90}
91 91
92EFL_CALLBACKS_ARRAY_DEFINE(_callback_array, 92EFL_CALLBACKS_ARRAY_DEFINE(_callback_array,
93{ EFL_LOOP_TIMER_EVENT_TICK, _timer_cb }, 93{ EFL_LOOP_TIMER_EVENT_TIMER_TICK, _timer_cb },
94{ EFL_EVENT_DEL, _del_obj_cb }) 94{ EFL_EVENT_DEL, _del_obj_cb })
95 95
96static void 96static 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)
60 60
61 efl_add(EFL_LOOP_TIMER_CLASS, loop, 61 efl_add(EFL_LOOP_TIMER_CLASS, loop,
62 efl_loop_timer_interval_set(efl_added, 0.0005), 62 efl_loop_timer_interval_set(efl_added, 0.0005),
63 efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TICK, _timer_cb, NULL)); 63 efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TIMER_TICK, _timer_cb, NULL));
64} 64}
65EFL_MAIN() 65EFL_MAIN()
66 66
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)
64 64
65 efl_add(EFL_LOOP_TIMER_CLASS, loop, 65 efl_add(EFL_LOOP_TIMER_CLASS, loop,
66 efl_loop_timer_interval_set(efl_added, 30), 66 efl_loop_timer_interval_set(efl_added, 30),
67 efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TICK, _timer_cb, NULL)); 67 efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TIMER_TICK, _timer_cb, NULL));
68} 68}
69EFL_MAIN() 69EFL_MAIN()
70 70
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)
103 // simulate a delayed promise resolve. 103 // simulate a delayed promise resolve.
104 efl_add(EFL_LOOP_TIMER_CLASS, loop, 104 efl_add(EFL_LOOP_TIMER_CLASS, loop,
105 efl_loop_timer_interval_set(efl_added, 1), 105 efl_loop_timer_interval_set(efl_added, 1),
106 efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TICK, 106 efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TIMER_TICK,
107 _test1_resolve, promise)); 107 _test1_resolve, promise));
108} 108}
109 109
@@ -154,7 +154,7 @@ _test2_failed_future(Efl_Loop *loop)
154 // simulate a delayed promise rejection. 154 // simulate a delayed promise rejection.
155 efl_add(EFL_LOOP_TIMER_CLASS, loop, 155 efl_add(EFL_LOOP_TIMER_CLASS, loop,
156 efl_loop_timer_interval_set(efl_added, 1), 156 efl_loop_timer_interval_set(efl_added, 1),
157 efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TICK, 157 efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TIMER_TICK,
158 _test2_reject, promise)); 158 _test2_reject, promise));
159} 159}
160 160
@@ -278,7 +278,7 @@ _test4_chained_future(Efl_Loop *loop)
278 // simulate a delayed promise resolve. 278 // simulate a delayed promise resolve.
279 efl_add(EFL_LOOP_TIMER_CLASS, loop, 279 efl_add(EFL_LOOP_TIMER_CLASS, loop,
280 efl_loop_timer_interval_set(efl_added, 1), 280 efl_loop_timer_interval_set(efl_added, 1),
281 efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TICK, 281 efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TIMER_TICK,
282 _test4_resolve, promise)); 282 _test4_resolve, promise));
283} 283}
284 284
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)
197 /* The TCP client to use to send/receive network data */ 197 /* The TCP client to use to send/receive network data */
198 _dialer = efl_add(EFL_NET_DIALER_TCP_CLASS, loop, 198 _dialer = efl_add(EFL_NET_DIALER_TCP_CLASS, loop,
199 efl_name_set(efl_added, "dialer"), 199 efl_name_set(efl_added, "dialer"),
200 efl_event_callback_add(efl_added, EFL_NET_DIALER_EVENT_CONNECTED, _dialer_connected, NULL)); 200 efl_event_callback_add(efl_added, EFL_NET_DIALER_EVENT_DIALER_CONNECTED, _dialer_connected, NULL));
201 if (!_dialer) 201 if (!_dialer)
202 { 202 {
203 fprintf(stderr, "ERROR: could not create Efl_Net_Dialer_Tcp\n"); 203 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)
138 /* The TCP client to use to send/receive network data */ 138 /* The TCP client to use to send/receive network data */
139 _dialer = efl_add(EFL_NET_DIALER_TCP_CLASS, loop, 139 _dialer = efl_add(EFL_NET_DIALER_TCP_CLASS, loop,
140 efl_name_set(efl_added, "dialer"), 140 efl_name_set(efl_added, "dialer"),
141 efl_event_callback_add(efl_added, EFL_NET_DIALER_EVENT_CONNECTED, _dialer_connected, NULL)); 141 efl_event_callback_add(efl_added, EFL_NET_DIALER_EVENT_DIALER_CONNECTED, _dialer_connected, NULL));
142 if (!_dialer) 142 if (!_dialer)
143 { 143 {
144 fprintf(stderr, "ERROR: could not create Efl_Net_Dialer_Tcp\n"); 144 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)
134 // Wait for 10 seconds before exiting this example 134 // Wait for 10 seconds before exiting this example
135 efl_add(EFL_LOOP_TIMER_CLASS, loop, 135 efl_add(EFL_LOOP_TIMER_CLASS, loop,
136 efl_loop_timer_interval_set(efl_added, 10.0), 136 efl_loop_timer_interval_set(efl_added, 10.0),
137 efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TICK, 137 efl_event_callback_add(efl_added, EFL_LOOP_TIMER_EVENT_TIMER_TICK,
138 _quit_cb, NULL)); 138 _quit_cb, NULL));
139} 139}
140EFL_MAIN() 140EFL_MAIN()