summaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@samsung.com>2014-01-10 16:33:22 +0900
committerCedric BAIL <cedric.bail@samsung.com>2014-01-10 16:37:59 +0900
commitea379f43a09d0586daf03b44516ed8d8550d0a91 (patch)
treed2787cf7ac393d0996ecab3cc22a101a5037292e /src/examples
parent2ed4a0510a9704c2fae790b3945ae708268dfe16 (diff)
emotion: remove some warning in the example.
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/emotion/emotion_basic_example.c2
-rw-r--r--src/examples/emotion/emotion_border_example.c14
-rw-r--r--src/examples/emotion/emotion_generic_example.c16
-rw-r--r--src/examples/emotion/emotion_generic_subtitle_example.c4
-rw-r--r--src/examples/emotion/emotion_signals_example.c14
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 df3ce15cb4..ec465bcbf3 100644
--- a/src/examples/emotion/emotion_basic_example.c
+++ b/src/examples/emotion/emotion_basic_example.c
@@ -11,7 +11,7 @@
11#define HEIGHT (240) 11#define HEIGHT (240)
12 12
13static void 13static void
14_playback_started_cb(void *data, Evas_Object *o, void *event_info) 14_playback_started_cb(void *data EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
15{ 15{
16 printf("Emotion object started playback.\n"); 16 printf("Emotion object started playback.\n");
17} 17}
diff --git a/src/examples/emotion/emotion_border_example.c b/src/examples/emotion/emotion_border_example.c
index a9d22e98b2..393a1c7cc9 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;
15static Eina_List *curfile = NULL; 15static Eina_List *curfile = NULL;
16 16
17static void 17static void
18_playback_started_cb(void *data, Evas_Object *o, void *event_info) 18_playback_started_cb(void *data EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
19{ 19{
20 printf("Emotion object started playback.\n"); 20 printf("Emotion object started playback.\n");
21} 21}
@@ -34,7 +34,7 @@ _create_emotion_object(Evas *e)
34} 34}
35 35
36static void 36static void
37_on_key_down(void *data, Evas *e, Evas_Object *o, void *event_info) 37_on_key_down(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info)
38{ 38{
39 Evas_Event_Key_Down *ev = event_info; 39 Evas_Event_Key_Down *ev = event_info;
40 Evas_Object *em = data; 40 Evas_Object *em = data;
@@ -104,25 +104,25 @@ _on_key_down(void *data, Evas *e, Evas_Object *o, void *event_info)
104} 104}
105 105
106static void 106static void
107_frame_decode_cb(void *data, Evas_Object *o, void *event_info) 107_frame_decode_cb(void *data EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
108{ 108{
109 // fprintf(stderr, "smartcb: frame_decode\n"); 109 // fprintf(stderr, "smartcb: frame_decode\n");
110} 110}
111 111
112static void 112static void
113_length_change_cb(void *data, Evas_Object *o, void *event_info) 113_length_change_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
114{ 114{
115 fprintf(stderr, "smartcb: length_change: %0.3f\n", emotion_object_play_length_get(o)); 115 fprintf(stderr, "smartcb: length_change: %0.3f\n", emotion_object_play_length_get(o));
116} 116}
117 117
118static void 118static void
119_position_update_cb(void *data, Evas_Object *o, void *event_info) 119_position_update_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
120{ 120{
121 fprintf(stderr, "smartcb: position_update: %0.3f\n", emotion_object_position_get(o)); 121 fprintf(stderr, "smartcb: position_update: %0.3f\n", emotion_object_position_get(o));
122} 122}
123 123
124static void 124static void
125_progress_change_cb(void *data, Evas_Object *o, void *event_info) 125_progress_change_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
126{ 126{
127 fprintf(stderr, "smartcb: progress_change: %0.3f, %s\n", 127 fprintf(stderr, "smartcb: progress_change: %0.3f, %s\n",
128 emotion_object_progress_status_get(o), 128 emotion_object_progress_status_get(o),
@@ -130,7 +130,7 @@ _progress_change_cb(void *data, Evas_Object *o, void *event_info)
130} 130}
131 131
132static void 132static void
133_frame_resize_cb(void *data, Evas_Object *o, void *event_info) 133_frame_resize_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
134{ 134{
135 int w, h; 135 int w, h;
136 emotion_object_size_get(o, &w, &h); 136 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 6d585fb396..9320230c88 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;
16static Eina_List *curfile = NULL; 16static Eina_List *curfile = NULL;
17 17
18static void 18static void
19_playback_started_cb(void *data, Evas_Object *o, void *event_info) 19_playback_started_cb(void *data EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
20{ 20{
21 printf("Emotion object started playback.\n"); 21 printf("Emotion object started playback.\n");
22} 22}
23 23
24static void 24static void
25_playback_stopped_cb(void *data, Evas_Object *o, void *event_info) 25_playback_stopped_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
26{ 26{
27 printf("Emotion playback stopped.\n"); 27 printf("Emotion playback stopped.\n");
28 emotion_object_play_set(o, EINA_FALSE); 28 emotion_object_play_set(o, EINA_FALSE);
@@ -45,7 +45,7 @@ _create_emotion_object(Evas *e)
45} 45}
46 46
47static void 47static void
48_on_key_down(void *data, Evas *e, Evas_Object *o, void *event_info) 48_on_key_down(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info)
49{ 49{
50 Evas_Event_Key_Down *ev = event_info; 50 Evas_Event_Key_Down *ev = event_info;
51 Evas_Object *em = data; 51 Evas_Object *em = data;
@@ -124,25 +124,25 @@ _on_key_down(void *data, Evas *e, Evas_Object *o, void *event_info)
124} 124}
125 125
126static void 126static void
127_frame_decode_cb(void *data, Evas_Object *o, void *event_info) 127_frame_decode_cb(void *data EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
128{ 128{
129 // fprintf(stderr, "smartcb: frame_decode\n"); 129 // fprintf(stderr, "smartcb: frame_decode\n");
130} 130}
131 131
132static void 132static void
133_length_change_cb(void *data, Evas_Object *o, void *event_info) 133_length_change_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
134{ 134{
135 fprintf(stderr, "smartcb: length_change: %0.3f\n", emotion_object_play_length_get(o)); 135 fprintf(stderr, "smartcb: length_change: %0.3f\n", emotion_object_play_length_get(o));
136} 136}
137 137
138static void 138static void
139_position_update_cb(void *data, Evas_Object *o, void *event_info) 139_position_update_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
140{ 140{
141 fprintf(stderr, "smartcb: position_update: %0.3f\n", emotion_object_position_get(o)); 141 fprintf(stderr, "smartcb: position_update: %0.3f\n", emotion_object_position_get(o));
142} 142}
143 143
144static void 144static void
145_progress_change_cb(void *data, Evas_Object *o, void *event_info) 145_progress_change_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
146{ 146{
147 fprintf(stderr, "smartcb: progress_change: %0.3f, %s\n", 147 fprintf(stderr, "smartcb: progress_change: %0.3f, %s\n",
148 emotion_object_progress_status_get(o), 148 emotion_object_progress_status_get(o),
@@ -150,7 +150,7 @@ _progress_change_cb(void *data, Evas_Object *o, void *event_info)
150} 150}
151 151
152static void 152static void
153_frame_resize_cb(void *data, Evas_Object *o, void *event_info) 153_frame_resize_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
154{ 154{
155 int w, h; 155 int w, h;
156 emotion_object_size_get(o, &w, &h); 156 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 fcdf177d02..b5fb5a880c 100644
--- a/src/examples/emotion/emotion_generic_subtitle_example.c
+++ b/src/examples/emotion/emotion_generic_subtitle_example.c
@@ -11,13 +11,13 @@
11#define HEIGHT (240) 11#define HEIGHT (240)
12 12
13static void 13static void
14_playback_started_cb(void *data, Evas_Object *o, void *event_info) 14_playback_started_cb(void *data EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
15{ 15{
16 printf("Emotion object started playback.\n"); 16 printf("Emotion object started playback.\n");
17} 17}
18 18
19static void 19static void
20_on_delete(Ecore_Evas *ee) 20_on_delete(Ecore_Evas *ee EINA_UNUSED)
21{ 21{
22 ecore_main_loop_quit(); 22 ecore_main_loop_quit();
23} 23}
diff --git a/src/examples/emotion/emotion_signals_example.c b/src/examples/emotion/emotion_signals_example.c
index efba9ffe5f..dd83ac2eb3 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)
31} 31}
32 32
33static void 33static void
34_playback_started_cb(void *data, Evas_Object *o, void *event_info) 34_playback_started_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
35{ 35{
36 printf(">>> Emotion object started playback.\n"); 36 printf(">>> Emotion object started playback.\n");
37 _display_info(o); 37 _display_info(o);
38} 38}
39 39
40static void 40static void
41_playback_finished_cb(void *data, Evas_Object *o, void *event_info) 41_playback_finished_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
42{ 42{
43 printf(">>> Emotion object finished playback.\n"); 43 printf(">>> Emotion object finished playback.\n");
44 _display_info(o); 44 _display_info(o);
45} 45}
46 46
47static void 47static void
48_open_done_cb(void *data, Evas_Object *o, void *event_info) 48_open_done_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
49{ 49{
50 printf(">>> Emotion object open done.\n"); 50 printf(">>> Emotion object open done.\n");
51 _display_info(o); 51 _display_info(o);
52} 52}
53 53
54static void 54static void
55_position_update_cb(void *data, Evas_Object *o, void *event_info) 55_position_update_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
56{ 56{
57 printf(">>> Emotion object first position update.\n"); 57 printf(">>> Emotion object first position update.\n");
58 evas_object_smart_callback_del(o, "position_update", _position_update_cb); 58 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)
60} 60}
61 61
62static void 62static void
63_frame_decode_cb(void *data, Evas_Object *o, void *event_info) 63_frame_decode_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
64{ 64{
65 printf(">>> Emotion object first frame decode.\n"); 65 printf(">>> Emotion object first frame decode.\n");
66 evas_object_smart_callback_del(o, "frame_decode", _frame_decode_cb); 66 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)
68} 68}
69 69
70static void 70static void
71_decode_stop_cb(void *data, Evas_Object *o, void *event_info) 71_decode_stop_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
72{ 72{
73 printf(">>> Emotion object decode stop.\n"); 73 printf(">>> Emotion object decode stop.\n");
74 _display_info(o); 74 _display_info(o);
75} 75}
76 76
77static void 77static void
78_frame_resize_cb(void *data, Evas_Object *o, void *event_info) 78_frame_resize_cb(void *data EINA_UNUSED, Evas_Object *o, void *event_info EINA_UNUSED)
79{ 79{
80 printf(">>> Emotion object frame resize.\n"); 80 printf(">>> Emotion object frame resize.\n");
81 _display_info(o); 81 _display_info(o);