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