cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=ea379f43a09d0586daf03b44516ed8d8550d0a91

commit ea379f43a09d0586daf03b44516ed8d8550d0a91
Author: Cedric BAIL <[email protected]>
Date:   Fri Jan 10 16:33:22 2014 +0900

    emotion: remove some warning in the example.
---
 src/examples/emotion/emotion_basic_example.c            |  2 +-
 src/examples/emotion/emotion_border_example.c           | 14 +++++++-------
 src/examples/emotion/emotion_generic_example.c          | 16 ++++++++--------
 src/examples/emotion/emotion_generic_subtitle_example.c |  4 ++--
 src/examples/emotion/emotion_signals_example.c          | 14 +++++++-------
 5 files changed, 25 insertions(+), 25 deletions(-)

diff --git a/src/examples/emotion/emotion_basic_example.c 
b/src/examples/emotion/emotion_basic_example.c
index df3ce15..ec465bc 100644
--- a/src/examples/emotion/emotion_basic_example.c
+++ b/src/examples/emotion/emotion_basic_example.c
@@ -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");
 }
diff --git a/src/examples/emotion/emotion_border_example.c 
b/src/examples/emotion/emotion_border_example.c
index a9d22e9..393a1c7 100644
--- a/src/examples/emotion/emotion_border_example.c
+++ b/src/examples/emotion/emotion_border_example.c
@@ -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);
diff --git a/src/examples/emotion/emotion_generic_example.c 
b/src/examples/emotion/emotion_generic_example.c
index 6d585fb..9320230 100644
--- a/src/examples/emotion/emotion_generic_example.c
+++ b/src/examples/emotion/emotion_generic_example.c
@@ -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);
diff --git a/src/examples/emotion/emotion_generic_subtitle_example.c 
b/src/examples/emotion/emotion_generic_subtitle_example.c
index fcdf177..b5fb5a8 100644
--- a/src/examples/emotion/emotion_generic_subtitle_example.c
+++ b/src/examples/emotion/emotion_generic_subtitle_example.c
@@ -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();
 }
diff --git a/src/examples/emotion/emotion_signals_example.c 
b/src/examples/emotion/emotion_signals_example.c
index efba9ff..dd83ac2 100644
--- a/src/examples/emotion/emotion_signals_example.c
+++ b/src/examples/emotion/emotion_signals_example.c
@@ -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);

-- 


Reply via email to