summaryrefslogtreecommitdiff
path: root/src/examples/emotion/emotion_generic_example.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/emotion/emotion_generic_example.c')
-rw-r--r--src/examples/emotion/emotion_generic_example.c24
1 files changed, 6 insertions, 18 deletions
diff --git a/src/examples/emotion/emotion_generic_example.c b/src/examples/emotion/emotion_generic_example.c
index f0d7fab..f7afeba 100644
--- a/src/examples/emotion/emotion_generic_example.c
+++ b/src/examples/emotion/emotion_generic_example.c
@@ -18,22 +18,18 @@
18static Eina_List *filenames = NULL; 18static Eina_List *filenames = NULL;
19static Eina_List *curfile = NULL; 19static Eina_List *curfile = NULL;
20 20
21static Eina_Bool 21static void
22_playback_started_cb(void *data EINA_UNUSED, const Eo_Event *ev EINA_UNUSED) 22_playback_started_cb(void *data EINA_UNUSED, const Eo_Event *ev EINA_UNUSED)
23{ 23{
24 printf("Emotion object started playback.\n"); 24 printf("Emotion object started playback.\n");
25
26 return EINA_TRUE;
27} 25}
28 26
29static Eina_Bool 27static void
30_playback_stopped_cb(void *data EINA_UNUSED, const Eo_Event *ev) 28_playback_stopped_cb(void *data EINA_UNUSED, const Eo_Event *ev)
31{ 29{
32 printf("Emotion playback stopped.\n"); 30 printf("Emotion playback stopped.\n");
33 emotion_object_play_set(ev->object, EINA_FALSE); 31 emotion_object_play_set(ev->object, EINA_FALSE);
34 emotion_object_position_set(ev->object, 0); 32 emotion_object_position_set(ev->object, 0);
35
36 return EINA_TRUE;
37} 33}
38 34
39static Evas_Object * 35static Evas_Object *
@@ -130,38 +126,30 @@ _on_key_down(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *
130 } 126 }
131} 127}
132 128
133static Eina_Bool 129static void
134_frame_decode_cb(void *data EINA_UNUSED, const Eo_Event *ev EINA_UNUSED) 130_frame_decode_cb(void *data EINA_UNUSED, const Eo_Event *ev EINA_UNUSED)
135{ 131{
136 // fprintf(stderr, "smartcb: frame_decode\n"); 132 // fprintf(stderr, "smartcb: frame_decode\n");
137
138 return EINA_TRUE;
139} 133}
140 134
141static Eina_Bool 135static void
142_length_change_cb(void *data EINA_UNUSED, const Eo_Event *ev) 136_length_change_cb(void *data EINA_UNUSED, const Eo_Event *ev)
143{ 137{
144 fprintf(stderr, "smartcb: length_change: %0.3f\n", emotion_object_play_length_get(ev->object)); 138 fprintf(stderr, "smartcb: length_change: %0.3f\n", emotion_object_play_length_get(ev->object));
145
146 return EINA_TRUE;
147} 139}
148 140
149static Eina_Bool 141static void
150_position_update_cb(void *data EINA_UNUSED, const Eo_Event *ev) 142_position_update_cb(void *data EINA_UNUSED, const Eo_Event *ev)
151{ 143{
152 fprintf(stderr, "smartcb: position_update: %0.3f\n", emotion_object_position_get(ev->object)); 144 fprintf(stderr, "smartcb: position_update: %0.3f\n", emotion_object_position_get(ev->object));
153
154 return EINA_TRUE;
155} 145}
156 146
157static Eina_Bool 147static void
158_progress_change_cb(void *data EINA_UNUSED, const Eo_Event *ev) 148_progress_change_cb(void *data EINA_UNUSED, const Eo_Event *ev)
159{ 149{
160 fprintf(stderr, "smartcb: progress_change: %0.3f, %s\n", 150 fprintf(stderr, "smartcb: progress_change: %0.3f, %s\n",
161 emotion_object_progress_status_get(ev->object), 151 emotion_object_progress_status_get(ev->object),
162 emotion_object_progress_info_get(ev->object)); 152 emotion_object_progress_info_get(ev->object));
163
164 return EINA_TRUE;
165} 153}
166 154
167EO_CALLBACKS_ARRAY_DEFINE(emotion_object_example_callbacks, 155EO_CALLBACKS_ARRAY_DEFINE(emotion_object_example_callbacks,