summaryrefslogtreecommitdiff
path: root/src/examples/emotion/emotion_signals_example.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-06-20 15:31:31 +0100
committerTom Hacohen <tom@stosb.com>2016-06-20 18:02:00 +0100
commit6202cc7485a54dea6f02a2668e7c907247902dd1 (patch)
tree7a1fa2b61175b1ef75a9bff7299a0ce3daa45216 /src/examples/emotion/emotion_signals_example.c
parentd648eb5311585f7392d0290640ba133814b52589 (diff)
Adjust the code according to the eo event stop changes.
This was changed in the previous commit.
Diffstat (limited to 'src/examples/emotion/emotion_signals_example.c')
-rw-r--r--src/examples/emotion/emotion_signals_example.c28
1 files changed, 7 insertions, 21 deletions
diff --git a/src/examples/emotion/emotion_signals_example.c b/src/examples/emotion/emotion_signals_example.c
index ecf30a7cc8..aae1063ef9 100644
--- a/src/examples/emotion/emotion_signals_example.c
+++ b/src/examples/emotion/emotion_signals_example.c
@@ -33,69 +33,55 @@ _display_info(Evas_Object *o)
33 printf("\n"); 33 printf("\n");
34} 34}
35 35
36static Eina_Bool 36static void
37_playback_started_cb(void *data EINA_UNUSED, const Eo_Event *ev) 37_playback_started_cb(void *data EINA_UNUSED, const Eo_Event *ev)
38{ 38{
39 printf(">>> Emotion object started playback.\n"); 39 printf(">>> Emotion object started playback.\n");
40 _display_info(ev->object); 40 _display_info(ev->object);
41
42 return EINA_TRUE;
43} 41}
44 42
45static Eina_Bool 43static void
46_playback_finished_cb(void *data EINA_UNUSED, const Eo_Event *ev) 44_playback_finished_cb(void *data EINA_UNUSED, const Eo_Event *ev)
47{ 45{
48 printf(">>> Emotion object finished playback.\n"); 46 printf(">>> Emotion object finished playback.\n");
49 _display_info(ev->object); 47 _display_info(ev->object);
50
51 return EINA_TRUE;
52} 48}
53 49
54static Eina_Bool 50static void
55_open_done_cb(void *data EINA_UNUSED, const Eo_Event *ev) 51_open_done_cb(void *data EINA_UNUSED, const Eo_Event *ev)
56{ 52{
57 printf(">>> Emotion object open done.\n"); 53 printf(">>> Emotion object open done.\n");
58 _display_info(ev->object); 54 _display_info(ev->object);
59
60 return EINA_TRUE;
61} 55}
62 56
63static Eina_Bool 57static void
64_position_update_cb(void *data EINA_UNUSED, const Eo_Event *ev) 58_position_update_cb(void *data EINA_UNUSED, const Eo_Event *ev)
65{ 59{
66 printf(">>> Emotion object first position update.\n"); 60 printf(">>> Emotion object first position update.\n");
67 eo_event_callback_del(ev->object, EMOTION_OBJECT_EVENT_POSITION_UPDATE, _position_update_cb, NULL); 61 eo_event_callback_del(ev->object, EMOTION_OBJECT_EVENT_POSITION_UPDATE, _position_update_cb, NULL);
68 _display_info(ev->object); 62 _display_info(ev->object);
69
70 return EINA_TRUE;
71} 63}
72 64
73static Eina_Bool 65static void
74_frame_decode_cb(void *data EINA_UNUSED, const Eo_Event *ev) 66_frame_decode_cb(void *data EINA_UNUSED, const Eo_Event *ev)
75{ 67{
76 printf(">>> Emotion object first frame decode.\n"); 68 printf(">>> Emotion object first frame decode.\n");
77 eo_event_callback_del(ev->object, EMOTION_OBJECT_EVENT_FRAME_DECODE, _frame_decode_cb, NULL); 69 eo_event_callback_del(ev->object, EMOTION_OBJECT_EVENT_FRAME_DECODE, _frame_decode_cb, NULL);
78 _display_info(ev->object); 70 _display_info(ev->object);
79
80 return EINA_TRUE;
81} 71}
82 72
83static Eina_Bool 73static void
84_decode_stop_cb(void *data EINA_UNUSED, const Eo_Event *ev) 74_decode_stop_cb(void *data EINA_UNUSED, const Eo_Event *ev)
85{ 75{
86 printf(">>> Emotion object decode stop.\n"); 76 printf(">>> Emotion object decode stop.\n");
87 _display_info(ev->object); 77 _display_info(ev->object);
88
89 return EINA_TRUE;
90} 78}
91 79
92static Eina_Bool 80static void
93_frame_resize_cb(void *data EINA_UNUSED, const Eo_Event *ev) 81_frame_resize_cb(void *data EINA_UNUSED, const Eo_Event *ev)
94{ 82{
95 printf(">>> Emotion object frame resize.\n"); 83 printf(">>> Emotion object frame resize.\n");
96 _display_info(ev->object); 84 _display_info(ev->object);
97
98 return EINA_TRUE;
99} 85}
100 86
101static void 87static void