summaryrefslogtreecommitdiff
path: root/src/examples/emotion/emotion_generic_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_generic_example.c
parent6594ba0b6df9ba72f031a00d0e8ba3b23cf2c0b2 (diff)
Fix examples according to the recent eo event changes.
Diffstat (limited to 'src/examples/emotion/emotion_generic_example.c')
-rw-r--r--src/examples/emotion/emotion_generic_example.c30
1 files changed, 12 insertions, 18 deletions
diff --git a/src/examples/emotion/emotion_generic_example.c b/src/examples/emotion/emotion_generic_example.c
index cdbfe6e..15059fc 100644
--- a/src/examples/emotion/emotion_generic_example.c
+++ b/src/examples/emotion/emotion_generic_example.c
@@ -19,8 +19,7 @@ static Eina_List *filenames = NULL;
19static Eina_List *curfile = NULL; 19static Eina_List *curfile = NULL;
20 20
21static Eina_Bool 21static Eina_Bool
22_playback_started_cb(void *data EINA_UNUSED, 22_playback_started_cb(void *data EINA_UNUSED, const Eo_Event *event EINA_UNUSED)
23 Eo *o EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
24{ 23{
25 printf("Emotion object started playback.\n"); 24 printf("Emotion object started playback.\n");
26 25
@@ -28,12 +27,11 @@ _playback_started_cb(void *data EINA_UNUSED,
28} 27}
29 28
30static Eina_Bool 29static Eina_Bool
31_playback_stopped_cb(void *data EINA_UNUSED, 30_playback_stopped_cb(void *data EINA_UNUSED, const Eo_Event *event)
32 Eo *o, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
33{ 31{
34 printf("Emotion playback stopped.\n"); 32 printf("Emotion playback stopped.\n");
35 emotion_object_play_set(o, EINA_FALSE); 33 emotion_object_play_set(event->obj, EINA_FALSE);
36 emotion_object_position_set(o, 0); 34 emotion_object_position_set(event->obj, 0);
37 35
38 return EINA_TRUE; 36 return EINA_TRUE;
39} 37}
@@ -133,8 +131,7 @@ _on_key_down(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *
133} 131}
134 132
135static Eina_Bool 133static Eina_Bool
136_frame_decode_cb(void *data EINA_UNUSED, 134_frame_decode_cb(void *data EINA_UNUSED, const Eo_Event *event EINA_UNUSED)
137 Eo *o EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
138{ 135{
139 // fprintf(stderr, "smartcb: frame_decode\n"); 136 // fprintf(stderr, "smartcb: frame_decode\n");
140 137
@@ -142,30 +139,27 @@ _frame_decode_cb(void *data EINA_UNUSED,
142} 139}
143 140
144static Eina_Bool 141static Eina_Bool
145_length_change_cb(void *data EINA_UNUSED, 142_length_change_cb(void *data EINA_UNUSED, const Eo_Event *event)
146 Eo *o, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
147{ 143{
148 fprintf(stderr, "smartcb: length_change: %0.3f\n", emotion_object_play_length_get(o)); 144 fprintf(stderr, "smartcb: length_change: %0.3f\n", emotion_object_play_length_get(event->obj));
149 145
150 return EINA_TRUE; 146 return EINA_TRUE;
151} 147}
152 148
153static Eina_Bool 149static Eina_Bool
154_position_update_cb(void *data EINA_UNUSED, 150_position_update_cb(void *data EINA_UNUSED, const Eo_Event *event)
155 Eo *o, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
156{ 151{
157 fprintf(stderr, "smartcb: position_update: %0.3f\n", emotion_object_position_get(o)); 152 fprintf(stderr, "smartcb: position_update: %0.3f\n", emotion_object_position_get(event->obj));
158 153
159 return EINA_TRUE; 154 return EINA_TRUE;
160} 155}
161 156
162static Eina_Bool 157static Eina_Bool
163_progress_change_cb(void *data EINA_UNUSED, 158_progress_change_cb(void *data EINA_UNUSED, const Eo_Event *event)
164 Eo *obj, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
165{ 159{
166 fprintf(stderr, "smartcb: progress_change: %0.3f, %s\n", 160 fprintf(stderr, "smartcb: progress_change: %0.3f, %s\n",
167 emotion_object_progress_status_get(obj), 161 emotion_object_progress_status_get(event->obj),
168 emotion_object_progress_info_get(obj)); 162 emotion_object_progress_info_get(event->obj));
169 163
170 return EINA_TRUE; 164 return EINA_TRUE;
171} 165}