summaryrefslogtreecommitdiff
path: root/src/examples/emotion/emotion_signals_example.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-03-11 12:24:05 +0000
committerTom Hacohen <tom@stosb.com>2016-03-11 12:29:03 +0000
commit15646cf5e639bdd4309a2b215f394436f652d2d1 (patch)
treef072839fb79ef4e814242350fa228657c6d446fb /src/examples/emotion/emotion_signals_example.c
parent72c623603830557b9582774e5e9575629036007d (diff)
Revert "Fix examples according to the recent eo event changes."
This reverts commit d2fba6c5959f82f35984167131d3b67207780f48.
Diffstat (limited to '')
-rw-r--r--src/examples/emotion/emotion_signals_example.c39
1 files changed, 23 insertions, 16 deletions
diff --git a/src/examples/emotion/emotion_signals_example.c b/src/examples/emotion/emotion_signals_example.c
index 8cf620dd63..b84c47d899 100644
--- a/src/examples/emotion/emotion_signals_example.c
+++ b/src/examples/emotion/emotion_signals_example.c
@@ -34,66 +34,73 @@ _display_info(Evas_Object *o)
34} 34}
35 35
36static Eina_Bool 36static Eina_Bool
37_playback_started_cb(void *data EINA_UNUSED, const Eo_Event *event) 37_playback_started_cb(void *data EINA_UNUSED,
38 Eo *o, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
38{ 39{
39 printf(">>> Emotion object started playback.\n"); 40 printf(">>> Emotion object started playback.\n");
40 _display_info(event->obj); 41 _display_info(o);
41 42
42 return EINA_TRUE; 43 return EINA_TRUE;
43} 44}
44 45
45static Eina_Bool 46static Eina_Bool
46_playback_finished_cb(void *data EINA_UNUSED, const Eo_Event *event) 47_playback_finished_cb(void *data EINA_UNUSED,
48 Eo *o, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
47{ 49{
48 printf(">>> Emotion object finished playback.\n"); 50 printf(">>> Emotion object finished playback.\n");
49 _display_info(event->obj); 51 _display_info(o);
50 52
51 return EINA_TRUE; 53 return EINA_TRUE;
52} 54}
53 55
54static Eina_Bool 56static Eina_Bool
55_open_done_cb(void *data EINA_UNUSED, const Eo_Event *event) 57_open_done_cb(void *data EINA_UNUSED,
58 Eo *o, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
56{ 59{
57 printf(">>> Emotion object open done.\n"); 60 printf(">>> Emotion object open done.\n");
58 _display_info(event->obj); 61 _display_info(o);
59 62
60 return EINA_TRUE; 63 return EINA_TRUE;
61} 64}
62 65
63static Eina_Bool 66static Eina_Bool
64_position_update_cb(void *data EINA_UNUSED, const Eo_Event *event) 67_position_update_cb(void *data EINA_UNUSED,
68 Eo *o, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
65{ 69{
66 printf(">>> Emotion object first position update.\n"); 70 printf(">>> Emotion object first position update.\n");
67 eo_event_callback_del(event->obj, EMOTION_OBJECT_EVENT_POSITION_UPDATE, _position_update_cb, NULL); 71 eo_event_callback_del(o, EMOTION_OBJECT_EVENT_POSITION_UPDATE, _position_update_cb, NULL);
68 _display_info(event->obj); 72 _display_info(o);
69 73
70 return EINA_TRUE; 74 return EINA_TRUE;
71} 75}
72 76
73static Eina_Bool 77static Eina_Bool
74_frame_decode_cb(void *data EINA_UNUSED, const Eo_Event *event) 78_frame_decode_cb(void *data EINA_UNUSED,
79 Eo *o, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
75{ 80{
76 printf(">>> Emotion object first frame decode.\n"); 81 printf(">>> Emotion object first frame decode.\n");
77 eo_event_callback_del(event->obj, EMOTION_OBJECT_EVENT_FRAME_DECODE, _frame_decode_cb, NULL); 82 eo_event_callback_del(o, EMOTION_OBJECT_EVENT_FRAME_DECODE, _frame_decode_cb, NULL);
78 _display_info(event->obj); 83 _display_info(o);
79 84
80 return EINA_TRUE; 85 return EINA_TRUE;
81} 86}
82 87
83static Eina_Bool 88static Eina_Bool
84_decode_stop_cb(void *data EINA_UNUSED, const Eo_Event *event) 89_decode_stop_cb(void *data EINA_UNUSED,
90 Eo *o, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
85{ 91{
86 printf(">>> Emotion object decode stop.\n"); 92 printf(">>> Emotion object decode stop.\n");
87 _display_info(event->obj); 93 _display_info(o);
88 94
89 return EINA_TRUE; 95 return EINA_TRUE;
90} 96}
91 97
92static Eina_Bool 98static Eina_Bool
93_frame_resize_cb(void *data EINA_UNUSED, const Eo_Event *event) 99_frame_resize_cb(void *data EINA_UNUSED,
100 Eo *o, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
94{ 101{
95 printf(">>> Emotion object frame resize.\n"); 102 printf(">>> Emotion object frame resize.\n");
96 _display_info(event->obj); 103 _display_info(o);
97 104
98 return EINA_TRUE; 105 return EINA_TRUE;
99} 106}