emotion: remove some warning in the example.

This commit is contained in:
Cedric BAIL 2014-01-10 16:33:22 +09:00
parent 2ed4a0510a
commit ea379f43a0
5 changed files with 25 additions and 25 deletions

View File

@ -11,7 +11,7 @@
#define HEIGHT (240)
static void
_playback_started_cb(void *data, Evas_Object *o, void *event_info)
_playback_started_cb(void *data EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
{
printf("Emotion object started playback.\n");
}

View File

@ -15,7 +15,7 @@ static Eina_List *filenames = NULL;
static Eina_List *curfile = NULL;
static void
_playback_started_cb(void *data, Evas_Object *o, void *event_info)
_playback_started_cb(void *data EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
{
printf("Emotion object started playback.\n");
}
@ -34,7 +34,7 @@ _create_emotion_object(Evas *e)
}
static void
_on_key_down(void *data, Evas *e, Evas_Object *o, void *event_info)
_on_key_down(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info)
{
Evas_Event_Key_Down *ev = event_info;
Evas_Object *em = data;
@ -104,25 +104,25 @@ _on_key_down(void *data, Evas *e, Evas_Object *o, void *event_info)
}
static void
_frame_decode_cb(void *data, Evas_Object *o, void *event_info)
_frame_decode_cb(void *data EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
{
// fprintf(stderr, "smartcb: frame_decode\n");
}
static void
_length_change_cb(void *data, Evas_Object *o, void *event_info)
_length_change_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
{
fprintf(stderr, "smartcb: length_change: %0.3f\n", emotion_object_play_length_get(o));
}
static void
_position_update_cb(void *data, Evas_Object *o, void *event_info)
_position_update_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
{
fprintf(stderr, "smartcb: position_update: %0.3f\n", emotion_object_position_get(o));
}
static void
_progress_change_cb(void *data, Evas_Object *o, void *event_info)
_progress_change_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
{
fprintf(stderr, "smartcb: progress_change: %0.3f, %s\n",
emotion_object_progress_status_get(o),
@ -130,7 +130,7 @@ _progress_change_cb(void *data, Evas_Object *o, void *event_info)
}
static void
_frame_resize_cb(void *data, Evas_Object *o, void *event_info)
_frame_resize_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
{
int w, h;
emotion_object_size_get(o, &w, &h);

View File

@ -16,13 +16,13 @@ static Eina_List *filenames = NULL;
static Eina_List *curfile = NULL;
static void
_playback_started_cb(void *data, Evas_Object *o, void *event_info)
_playback_started_cb(void *data EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
{
printf("Emotion object started playback.\n");
}
static void
_playback_stopped_cb(void *data, Evas_Object *o, void *event_info)
_playback_stopped_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
{
printf("Emotion playback stopped.\n");
emotion_object_play_set(o, EINA_FALSE);
@ -45,7 +45,7 @@ _create_emotion_object(Evas *e)
}
static void
_on_key_down(void *data, Evas *e, Evas_Object *o, void *event_info)
_on_key_down(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info)
{
Evas_Event_Key_Down *ev = event_info;
Evas_Object *em = data;
@ -124,25 +124,25 @@ _on_key_down(void *data, Evas *e, Evas_Object *o, void *event_info)
}
static void
_frame_decode_cb(void *data, Evas_Object *o, void *event_info)
_frame_decode_cb(void *data EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
{
// fprintf(stderr, "smartcb: frame_decode\n");
}
static void
_length_change_cb(void *data, Evas_Object *o, void *event_info)
_length_change_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
{
fprintf(stderr, "smartcb: length_change: %0.3f\n", emotion_object_play_length_get(o));
}
static void
_position_update_cb(void *data, Evas_Object *o, void *event_info)
_position_update_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
{
fprintf(stderr, "smartcb: position_update: %0.3f\n", emotion_object_position_get(o));
}
static void
_progress_change_cb(void *data, Evas_Object *o, void *event_info)
_progress_change_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
{
fprintf(stderr, "smartcb: progress_change: %0.3f, %s\n",
emotion_object_progress_status_get(o),
@ -150,7 +150,7 @@ _progress_change_cb(void *data, Evas_Object *o, void *event_info)
}
static void
_frame_resize_cb(void *data, Evas_Object *o, void *event_info)
_frame_resize_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
{
int w, h;
emotion_object_size_get(o, &w, &h);

View File

@ -11,13 +11,13 @@
#define HEIGHT (240)
static void
_playback_started_cb(void *data, Evas_Object *o, void *event_info)
_playback_started_cb(void *data EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
{
printf("Emotion object started playback.\n");
}
static void
_on_delete(Ecore_Evas *ee)
_on_delete(Ecore_Evas *ee EINA_UNUSED)
{
ecore_main_loop_quit();
}

View File

@ -31,28 +31,28 @@ _display_info(Evas_Object *o)
}
static void
_playback_started_cb(void *data, Evas_Object *o, void *event_info)
_playback_started_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
{
printf(">>> Emotion object started playback.\n");
_display_info(o);
}
static void
_playback_finished_cb(void *data, Evas_Object *o, void *event_info)
_playback_finished_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
{
printf(">>> Emotion object finished playback.\n");
_display_info(o);
}
static void
_open_done_cb(void *data, Evas_Object *o, void *event_info)
_open_done_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
{
printf(">>> Emotion object open done.\n");
_display_info(o);
}
static void
_position_update_cb(void *data, Evas_Object *o, void *event_info)
_position_update_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
{
printf(">>> Emotion object first position update.\n");
evas_object_smart_callback_del(o, "position_update", _position_update_cb);
@ -60,7 +60,7 @@ _position_update_cb(void *data, Evas_Object *o, void *event_info)
}
static void
_frame_decode_cb(void *data, Evas_Object *o, void *event_info)
_frame_decode_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
{
printf(">>> Emotion object first frame decode.\n");
evas_object_smart_callback_del(o, "frame_decode", _frame_decode_cb);
@ -68,14 +68,14 @@ _frame_decode_cb(void *data, Evas_Object *o, void *event_info)
}
static void
_decode_stop_cb(void *data, Evas_Object *o, void *event_info)
_decode_stop_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
{
printf(">>> Emotion object decode stop.\n");
_display_info(o);
}
static void
_frame_resize_cb(void *data, Evas_Object *o, void *event_info)
_frame_resize_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
{
printf(">>> Emotion object frame resize.\n");
_display_info(o);