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