summaryrefslogtreecommitdiff
path: root/src/examples/edbus
diff options
context:
space:
mode:
authorJosé Roberto de Souza <zehortigoza@profusion.mobi>2013-01-04 16:44:06 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2013-01-04 16:44:06 +0000
commit748b09d7c0f1ef98b38c94331549baa5d0d5a994 (patch)
treedffabfe5a5fc0016ce80dd7dfab2ea2aafbc7d5a /src/examples/edbus
parent231b69735b439becfc23fecd86fec937656f40ad (diff)
edbus: Remove unused parameter warning of edbus examples
Patch by: José Roberto de Souza <zehortigoza@profusion.mobi> SVN revision: 82213
Diffstat (limited to 'src/examples/edbus')
-rw-r--r--src/examples/edbus/banshee.c21
-rw-r--r--src/examples/edbus/client.c24
-rw-r--r--src/examples/edbus/complex-types-client-eina-value.c12
-rw-r--r--src/examples/edbus/complex-types-server.c22
-rw-r--r--src/examples/edbus/complex-types.c18
-rw-r--r--src/examples/edbus/connman-list-services.c2
-rw-r--r--src/examples/edbus/ofono-dial.c2
-rw-r--r--src/examples/edbus/server.c22
8 files changed, 61 insertions, 62 deletions
diff --git a/src/examples/edbus/banshee.c b/src/examples/edbus/banshee.c
index 59c6a9a493..8223139e8e 100644
--- a/src/examples/edbus/banshee.c
+++ b/src/examples/edbus/banshee.c
@@ -13,7 +13,7 @@
13static EDBus_Signal_Handler *state_changed2; 13static EDBus_Signal_Handler *state_changed2;
14 14
15static Eina_Bool 15static Eina_Bool
16_timeout_application(void *data) 16_timeout_application(void *data EINA_UNUSED)
17{ 17{
18 printf("\n## ecore_main_loop_quit()\n"); 18 printf("\n## ecore_main_loop_quit()\n");
19 ecore_main_loop_quit(); 19 ecore_main_loop_quit();
@@ -21,7 +21,7 @@ _timeout_application(void *data)
21} 21}
22 22
23static void 23static void
24on_get_playlists(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 24on_get_playlists(void *data EINA_UNUSED, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
25{ 25{
26 EDBus_Message_Iter *array, *struct_entry; 26 EDBus_Message_Iter *array, *struct_entry;
27 const char *path, *name, *image; 27 const char *path, *name, *image;
@@ -49,7 +49,7 @@ on_get_playlists(void *data, const EDBus_Message *msg, EDBus_Pending *pending)
49} 49}
50 50
51static void 51static void
52iterate_dict(void *data, const void *key, EDBus_Message_Iter *var) 52iterate_dict(void *data EINA_UNUSED, const void *key, EDBus_Message_Iter *var)
53{ 53{
54 const char *skey = key; 54 const char *skey = key;
55 55
@@ -73,7 +73,7 @@ iterate_dict(void *data, const void *key, EDBus_Message_Iter *var)
73} 73}
74 74
75static void 75static void
76playlist_get_all_cb(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 76playlist_get_all_cb(void *data EINA_UNUSED, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
77{ 77{
78 EDBus_Message_Iter *array; 78 EDBus_Message_Iter *array;
79 EINA_SAFETY_ON_TRUE_RETURN(edbus_message_error_get(msg, NULL, NULL)); 79 EINA_SAFETY_ON_TRUE_RETURN(edbus_message_error_get(msg, NULL, NULL));
@@ -83,7 +83,7 @@ playlist_get_all_cb(void *data, const EDBus_Message *msg, EDBus_Pending *pending
83} 83}
84 84
85static void 85static void
86on_introspect(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 86on_introspect(void *data EINA_UNUSED, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
87{ 87{
88 const char *string; 88 const char *string;
89 89
@@ -99,7 +99,7 @@ on_introspect(void *data, const EDBus_Message *msg, EDBus_Pending *pending)
99} 99}
100 100
101static void 101static void
102on_next_or_pause(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 102on_next_or_pause(void *data, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
103{ 103{
104 const char *status = data; 104 const char *status = data;
105 105
@@ -109,7 +109,7 @@ on_next_or_pause(void *data, const EDBus_Message *msg, EDBus_Pending *pending)
109} 109}
110 110
111static void 111static void
112on_state_changed(void *data, const EDBus_Message *msg) 112on_state_changed(void *data EINA_UNUSED, const EDBus_Message *msg)
113{ 113{
114 const char *status; 114 const char *status;
115 EINA_SAFETY_ON_TRUE_RETURN(edbus_message_error_get(msg, NULL, NULL)); 115 EINA_SAFETY_ON_TRUE_RETURN(edbus_message_error_get(msg, NULL, NULL));
@@ -124,7 +124,7 @@ on_state_changed(void *data, const EDBus_Message *msg)
124} 124}
125 125
126static void 126static void
127on_state_changed2(void *data, const EDBus_Message *msg) 127on_state_changed2(void *data EINA_UNUSED, const EDBus_Message *msg)
128{ 128{
129 const char *status; 129 const char *status;
130 EINA_SAFETY_ON_TRUE_RETURN(edbus_message_error_get(msg, NULL, NULL)); 130 EINA_SAFETY_ON_TRUE_RETURN(edbus_message_error_get(msg, NULL, NULL));
@@ -141,7 +141,7 @@ on_state_changed2(void *data, const EDBus_Message *msg)
141} 141}
142 142
143static void 143static void
144on_banshee_startup(void *data, const EDBus_Message *msg) 144on_banshee_startup(void *data EINA_UNUSED, const EDBus_Message *msg)
145{ 145{
146 const char *bus, *older_id, *new_id; 146 const char *bus, *older_id, *new_id;
147 147
@@ -156,7 +156,7 @@ on_banshee_startup(void *data, const EDBus_Message *msg)
156} 156}
157 157
158static void 158static void
159on_name_owner_changed(void *data, const EDBus_Message *msg) 159on_name_owner_changed(void *data EINA_UNUSED, const EDBus_Message *msg)
160{ 160{
161 const char *bus, *older_id, *new_id; 161 const char *bus, *older_id, *new_id;
162 162
@@ -236,4 +236,3 @@ end:
236 ecore_shutdown(); 236 ecore_shutdown();
237 return 0; 237 return 0;
238} 238}
239
diff --git a/src/examples/edbus/client.c b/src/examples/edbus/client.c
index 02da5a2e9d..8a0420c490 100644
--- a/src/examples/edbus/client.c
+++ b/src/examples/edbus/client.c
@@ -10,13 +10,13 @@ static int _client_log_dom = -1;
10#define ERR(...) EINA_LOG_DOM_ERR(_client_log_dom, __VA_ARGS__) 10#define ERR(...) EINA_LOG_DOM_ERR(_client_log_dom, __VA_ARGS__)
11 11
12static void 12static void
13_on_alive(void *context, const EDBus_Message *msg) 13_on_alive(void *context EINA_UNUSED, const EDBus_Message *msg EINA_UNUSED)
14{ 14{
15 printf("Alive\n\n"); 15 printf("Alive\n\n");
16} 16}
17 17
18static void 18static void
19_on_hello(void *context, const EDBus_Message *msg) 19_on_hello(void *context EINA_UNUSED, const EDBus_Message *msg)
20{ 20{
21 const char *txt; 21 const char *txt;
22 if (edbus_message_arguments_get(msg, "s", &txt)) 22 if (edbus_message_arguments_get(msg, "s", &txt))
@@ -56,7 +56,7 @@ test(void)
56} 56}
57 57
58static void 58static void
59_on_send_bool(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 59_on_send_bool(void *data EINA_UNUSED, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
60{ 60{
61 const char *errname, *errmsg; 61 const char *errname, *errmsg;
62 Eina_Bool b; 62 Eina_Bool b;
@@ -83,7 +83,7 @@ _on_send_bool(void *data, const EDBus_Message *msg, EDBus_Pending *pending)
83} 83}
84 84
85static void 85static void
86_on_send_byte(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 86_on_send_byte(void *data EINA_UNUSED, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
87{ 87{
88 const char *errname, *errmsg; 88 const char *errname, *errmsg;
89 uint8_t y; 89 uint8_t y;
@@ -110,7 +110,7 @@ _on_send_byte(void *data, const EDBus_Message *msg, EDBus_Pending *pending)
110} 110}
111 111
112static void 112static void
113_on_send_uint32(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 113_on_send_uint32(void *data EINA_UNUSED, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
114{ 114{
115 const char *errname, *errmsg; 115 const char *errname, *errmsg;
116 unsigned int u; 116 unsigned int u;
@@ -137,7 +137,7 @@ _on_send_uint32(void *data, const EDBus_Message *msg, EDBus_Pending *pending)
137} 137}
138 138
139static void 139static void
140_on_send_int32(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 140_on_send_int32(void *data EINA_UNUSED, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
141{ 141{
142 const char *errname, *errmsg; 142 const char *errname, *errmsg;
143 int32_t i; 143 int32_t i;
@@ -164,7 +164,7 @@ _on_send_int32(void *data, const EDBus_Message *msg, EDBus_Pending *pending)
164} 164}
165 165
166static void 166static void
167_on_send_int16(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 167_on_send_int16(void *data EINA_UNUSED, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
168{ 168{
169 const char *errname, *errmsg; 169 const char *errname, *errmsg;
170 int16_t n; 170 int16_t n;
@@ -191,7 +191,7 @@ _on_send_int16(void *data, const EDBus_Message *msg, EDBus_Pending *pending)
191} 191}
192 192
193static void 193static void
194_on_send_double(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 194_on_send_double(void *data EINA_UNUSED, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
195{ 195{
196 const char *errname, *errmsg; 196 const char *errname, *errmsg;
197 double d; 197 double d;
@@ -218,7 +218,7 @@ _on_send_double(void *data, const EDBus_Message *msg, EDBus_Pending *pending)
218} 218}
219 219
220static void 220static void
221_on_send_string(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 221_on_send_string(void *data EINA_UNUSED, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
222{ 222{
223 const char *errname, *errmsg; 223 const char *errname, *errmsg;
224 char *s; 224 char *s;
@@ -245,7 +245,7 @@ _on_send_string(void *data, const EDBus_Message *msg, EDBus_Pending *pending)
245} 245}
246 246
247static void 247static void
248_on_async_test(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 248_on_async_test(void *data EINA_UNUSED, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
249{ 249{
250 const char *errname, *errmsg; 250 const char *errname, *errmsg;
251 251
@@ -259,13 +259,13 @@ _on_async_test(void *data, const EDBus_Message *msg, EDBus_Pending *pending)
259} 259}
260 260
261static void 261static void
262on_name_owner_changed(void *data, const char *bus, const char *old_id, const char *new_id) 262on_name_owner_changed(void *data EINA_UNUSED, const char *bus, const char *old_id, const char *new_id EINA_UNUSED)
263{ 263{
264 printf("Bus=%s | old=%s | new=%s\n", bus, old_id, new_id); 264 printf("Bus=%s | old=%s | new=%s\n", bus, old_id, new_id);
265} 265}
266 266
267static Eina_Bool 267static Eina_Bool
268finish(void *data) 268finish(void *data EINA_UNUSED)
269{ 269{
270 ecore_main_loop_quit(); 270 ecore_main_loop_quit();
271 return ECORE_CALLBACK_CANCEL; 271 return ECORE_CALLBACK_CANCEL;
diff --git a/src/examples/edbus/complex-types-client-eina-value.c b/src/examples/edbus/complex-types-client-eina-value.c
index 5f7fa48313..bf0ba902e0 100644
--- a/src/examples/edbus/complex-types-client-eina-value.c
+++ b/src/examples/edbus/complex-types-client-eina-value.c
@@ -90,7 +90,7 @@ _fill_receive_array_of_string_int_with_size(EDBus_Message *msg, int size, const
90} 90}
91 91
92static void 92static void
93on_send_array(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 93on_send_array(void *data EINA_UNUSED, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
94{ 94{
95 Eina_Value *v, array; 95 Eina_Value *v, array;
96 const char *txt; 96 const char *txt;
@@ -116,7 +116,7 @@ on_send_array(void *data, const EDBus_Message *msg, EDBus_Pending *pending)
116} 116}
117 117
118static void 118static void
119on_receive_array_with_size(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 119on_receive_array_with_size(void *data EINA_UNUSED, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
120{ 120{
121 const char *errname; 121 const char *errname;
122 const char *errmsg; 122 const char *errmsg;
@@ -129,7 +129,7 @@ on_receive_array_with_size(void *data, const EDBus_Message *msg, EDBus_Pending *
129} 129}
130 130
131static void 131static void
132on_plus_one(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 132on_plus_one(void *data EINA_UNUSED, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
133{ 133{
134 Eina_Value *v; 134 Eina_Value *v;
135 int num2; 135 int num2;
@@ -148,7 +148,7 @@ on_plus_one(void *data, const EDBus_Message *msg, EDBus_Pending *pending)
148} 148}
149 149
150static void 150static void
151receive_variant_cb(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 151receive_variant_cb(void *data EINA_UNUSED, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
152{ 152{
153 Eina_Value *v, variant, array; 153 Eina_Value *v, variant, array;
154 unsigned i; 154 unsigned i;
@@ -177,7 +177,7 @@ receive_variant_cb(void *data, const EDBus_Message *msg, EDBus_Pending *pending)
177} 177}
178 178
179static void 179static void
180_property_removed(void *data, EDBus_Proxy *proxy, void *event_info) 180_property_removed(void *data EINA_UNUSED, EDBus_Proxy *proxy EINA_UNUSED, void *event_info)
181{ 181{
182 EDBus_Proxy_Event_Property_Removed *event = event_info; 182 EDBus_Proxy_Event_Property_Removed *event = event_info;
183 183
@@ -185,7 +185,7 @@ _property_removed(void *data, EDBus_Proxy *proxy, void *event_info)
185} 185}
186 186
187static void 187static void
188_property_changed(void *data, EDBus_Proxy *proxy, void *event_info) 188_property_changed(void *data EINA_UNUSED, EDBus_Proxy *proxy EINA_UNUSED, void *event_info)
189{ 189{
190 EDBus_Proxy_Event_Property_Changed *event = event_info; 190 EDBus_Proxy_Event_Property_Changed *event = event_info;
191 const char *name; 191 const char *name;
diff --git a/src/examples/edbus/complex-types-server.c b/src/examples/edbus/complex-types-server.c
index 5e8742236c..7441690c71 100644
--- a/src/examples/edbus/complex-types-server.c
+++ b/src/examples/edbus/complex-types-server.c
@@ -11,7 +11,7 @@ static int int32 = 35;
11static Ecore_Timer *timer; 11static Ecore_Timer *timer;
12 12
13static EDBus_Message * 13static EDBus_Message *
14_receive_array(const EDBus_Service_Interface *iface, const EDBus_Message *msg) 14_receive_array(const EDBus_Service_Interface *iface EINA_UNUSED, const EDBus_Message *msg)
15{ 15{
16 EDBus_Message *reply = edbus_message_method_return_new(msg); 16 EDBus_Message *reply = edbus_message_method_return_new(msg);
17 EDBus_Message_Iter *array; 17 EDBus_Message_Iter *array;
@@ -32,7 +32,7 @@ _receive_array(const EDBus_Service_Interface *iface, const EDBus_Message *msg)
32} 32}
33 33
34static EDBus_Message * 34static EDBus_Message *
35_receive_array_of_string_int_with_size(const EDBus_Service_Interface *iface, const EDBus_Message *msg) 35_receive_array_of_string_int_with_size(const EDBus_Service_Interface *iface EINA_UNUSED, const EDBus_Message *msg)
36{ 36{
37 EDBus_Message *reply = edbus_message_method_return_new(msg); 37 EDBus_Message *reply = edbus_message_method_return_new(msg);
38 EDBus_Message_Iter *array, *struct_si; 38 EDBus_Message_Iter *array, *struct_si;
@@ -64,7 +64,7 @@ _receive_array_of_string_int_with_size(const EDBus_Service_Interface *iface, con
64} 64}
65 65
66static EDBus_Message * 66static EDBus_Message *
67_receive_variant(const EDBus_Service_Interface *iface, const EDBus_Message *msg) 67_receive_variant(const EDBus_Service_Interface *iface EINA_UNUSED, const EDBus_Message *msg)
68{ 68{
69 EDBus_Message *reply = edbus_message_method_return_new(msg); 69 EDBus_Message *reply = edbus_message_method_return_new(msg);
70 EDBus_Message_Iter *var, *array, *main_iter; 70 EDBus_Message_Iter *var, *array, *main_iter;
@@ -84,7 +84,7 @@ _receive_variant(const EDBus_Service_Interface *iface, const EDBus_Message *msg)
84} 84}
85 85
86static EDBus_Message * 86static EDBus_Message *
87_send_variant(const EDBus_Service_Interface *iface, const EDBus_Message *msg) 87_send_variant(const EDBus_Service_Interface *iface EINA_UNUSED, const EDBus_Message *msg)
88{ 88{
89 EDBus_Message *reply = edbus_message_method_return_new(msg); 89 EDBus_Message *reply = edbus_message_method_return_new(msg);
90 EDBus_Message_Iter *variant; 90 EDBus_Message_Iter *variant;
@@ -135,7 +135,7 @@ _send_variant(const EDBus_Service_Interface *iface, const EDBus_Message *msg)
135} 135}
136 136
137static EDBus_Message * 137static EDBus_Message *
138_send_array_int(const EDBus_Service_Interface *iface, const EDBus_Message *msg) 138_send_array_int(const EDBus_Service_Interface *iface EINA_UNUSED, const EDBus_Message *msg)
139{ 139{
140 EDBus_Message *reply = edbus_message_method_return_new(msg); 140 EDBus_Message *reply = edbus_message_method_return_new(msg);
141 EDBus_Message_Iter *iter, *array; 141 EDBus_Message_Iter *iter, *array;
@@ -153,7 +153,7 @@ _send_array_int(const EDBus_Service_Interface *iface, const EDBus_Message *msg)
153} 153}
154 154
155static EDBus_Message * 155static EDBus_Message *
156_send_array(const EDBus_Service_Interface *iface, const EDBus_Message *msg) 156_send_array(const EDBus_Service_Interface *iface EINA_UNUSED, const EDBus_Message *msg)
157{ 157{
158 EDBus_Message *reply = edbus_message_method_return_new(msg); 158 EDBus_Message *reply = edbus_message_method_return_new(msg);
159 EDBus_Message_Iter *iter, *array; 159 EDBus_Message_Iter *iter, *array;
@@ -172,7 +172,7 @@ _send_array(const EDBus_Service_Interface *iface, const EDBus_Message *msg)
172} 172}
173 173
174static EDBus_Message * 174static EDBus_Message *
175_plus_one(const EDBus_Service_Interface *iface, const EDBus_Message *msg) 175_plus_one(const EDBus_Service_Interface *iface EINA_UNUSED, const EDBus_Message *msg)
176{ 176{
177 EDBus_Message *reply = edbus_message_method_return_new(msg); 177 EDBus_Message *reply = edbus_message_method_return_new(msg);
178 int num; 178 int num;
@@ -190,7 +190,7 @@ _plus_one(const EDBus_Service_Interface *iface, const EDBus_Message *msg)
190} 190}
191 191
192static EDBus_Message * 192static EDBus_Message *
193_double_container(const EDBus_Service_Interface *iface, const EDBus_Message *msg) 193_double_container(const EDBus_Service_Interface *iface EINA_UNUSED, const EDBus_Message *msg)
194{ 194{
195 EDBus_Message_Iter *array1, *array2, *structure; 195 EDBus_Message_Iter *array1, *array2, *structure;
196 int num1, num2; 196 int num1, num2;
@@ -220,7 +220,7 @@ _double_container(const EDBus_Service_Interface *iface, const EDBus_Message *msg
220} 220}
221 221
222static Eina_Bool 222static Eina_Bool
223_properties_get(const EDBus_Service_Interface *iface, const char *propname, EDBus_Message_Iter *iter, const EDBus_Message *request_msg, EDBus_Message **error) 223_properties_get(const EDBus_Service_Interface *iface EINA_UNUSED, const char *propname, EDBus_Message_Iter *iter, const EDBus_Message *request_msg EINA_UNUSED, EDBus_Message **error EINA_UNUSED)
224{ 224{
225 printf("Properties_get - %s\n", propname); 225 printf("Properties_get - %s\n", propname);
226 if (!strcmp(propname, "Resp2")) 226 if (!strcmp(propname, "Resp2"))
@@ -243,7 +243,7 @@ _properties_get(const EDBus_Service_Interface *iface, const char *propname, EDBu
243} 243}
244 244
245static EDBus_Message * 245static EDBus_Message *
246_properties_set(const EDBus_Service_Interface *iface, const char *propname, EDBus_Message_Iter *iter, const EDBus_Message *msg) 246_properties_set(const EDBus_Service_Interface *iface EINA_UNUSED, const char *propname, EDBus_Message_Iter *iter, const EDBus_Message *msg)
247{ 247{
248 char *type; 248 char *type;
249 249
@@ -335,7 +335,7 @@ static Eina_Bool _emit_changed(void *data)
335} 335}
336 336
337static void 337static void
338on_name_request(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 338on_name_request(void *data, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
339{ 339{
340 unsigned int reply; 340 unsigned int reply;
341 EDBus_Service_Interface *iface = data; 341 EDBus_Service_Interface *iface = data;
diff --git a/src/examples/edbus/complex-types.c b/src/examples/edbus/complex-types.c
index a0af846f5f..6884d0955d 100644
--- a/src/examples/edbus/complex-types.c
+++ b/src/examples/edbus/complex-types.c
@@ -8,7 +8,7 @@
8EDBus_Connection *conn; 8EDBus_Connection *conn;
9 9
10static Eina_Bool 10static Eina_Bool
11_timer1_cb(void *data) 11_timer1_cb(void *data EINA_UNUSED)
12{ 12{
13 printf("\nFishing...\n"); 13 printf("\nFishing...\n");
14 ecore_main_loop_quit(); 14 ecore_main_loop_quit();
@@ -16,7 +16,7 @@ _timer1_cb(void *data)
16} 16}
17 17
18static void 18static void
19on_plus_one(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 19on_plus_one(void *data EINA_UNUSED, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
20{ 20{
21 int num2 = 0; 21 int num2 = 0;
22 22
@@ -35,7 +35,7 @@ on_plus_one(void *data, const EDBus_Message *msg, EDBus_Pending *pending)
35} 35}
36 36
37static void 37static void
38set_property_resp2(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 38set_property_resp2(void *data EINA_UNUSED, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
39{ 39{
40 const char *errname; 40 const char *errname;
41 const char *errmsg; 41 const char *errmsg;
@@ -49,7 +49,7 @@ set_property_resp2(void *data, const EDBus_Message *msg, EDBus_Pending *pending)
49} 49}
50 50
51static void 51static void
52get_property_resp2(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 52get_property_resp2(void *data, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
53{ 53{
54 EDBus_Proxy *proxy = data; 54 EDBus_Proxy *proxy = data;
55 EDBus_Message_Iter *variant = NULL; 55 EDBus_Message_Iter *variant = NULL;
@@ -94,7 +94,7 @@ get_property_resp2(void *data, const EDBus_Message *msg, EDBus_Pending *pending)
94} 94}
95 95
96static void 96static void
97on_send_array_int(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 97on_send_array_int(void *data EINA_UNUSED, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
98{ 98{
99 EDBus_Message_Iter *array = NULL; 99 EDBus_Message_Iter *array = NULL;
100 int num; 100 int num;
@@ -118,7 +118,7 @@ on_send_array_int(void *data, const EDBus_Message *msg, EDBus_Pending *pending)
118} 118}
119 119
120static void 120static void
121on_send_array(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 121on_send_array(void *data EINA_UNUSED, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
122{ 122{
123 EDBus_Message_Iter *array = NULL; 123 EDBus_Message_Iter *array = NULL;
124 char *txt = NULL; 124 char *txt = NULL;
@@ -149,7 +149,7 @@ on_send_array(void *data, const EDBus_Message *msg, EDBus_Pending *pending)
149} 149}
150 150
151static void 151static void
152on_receive_array_with_size(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 152on_receive_array_with_size(void *data EINA_UNUSED, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
153{ 153{
154 const char *errname; 154 const char *errname;
155 const char *errmsg; 155 const char *errmsg;
@@ -162,13 +162,13 @@ on_receive_array_with_size(void *data, const EDBus_Message *msg, EDBus_Pending *
162} 162}
163 163
164static void 164static void
165on_send_variant(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 165on_send_variant(void *data EINA_UNUSED, const EDBus_Message *msg EINA_UNUSED, EDBus_Pending *pending EINA_UNUSED)
166{ 166{
167 printf("on_send_variant()\n\n"); 167 printf("on_send_variant()\n\n");
168} 168}
169 169
170static void 170static void
171on_receive_array(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 171on_receive_array(void *data EINA_UNUSED, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
172{ 172{
173 const char *errname; 173 const char *errname;
174 const char *errmsg; 174 const char *errmsg;
diff --git a/src/examples/edbus/connman-list-services.c b/src/examples/edbus/connman-list-services.c
index a192d8b506..73b3970dcc 100644
--- a/src/examples/edbus/connman-list-services.c
+++ b/src/examples/edbus/connman-list-services.c
@@ -2,7 +2,7 @@
2#include <Ecore.h> 2#include <Ecore.h>
3 3
4static void 4static void
5on_services_get(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 5on_services_get(void *data EINA_UNUSED, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
6{ 6{
7 EDBus_Message_Iter *array, *entry; 7 EDBus_Message_Iter *array, *entry;
8 const char *errname, *errmsg; 8 const char *errname, *errmsg;
diff --git a/src/examples/edbus/ofono-dial.c b/src/examples/edbus/ofono-dial.c
index 5e833ddc4b..b2da85547e 100644
--- a/src/examples/edbus/ofono-dial.c
+++ b/src/examples/edbus/ofono-dial.c
@@ -2,7 +2,7 @@
2#include <Ecore.h> 2#include <Ecore.h>
3 3
4static void 4static void
5on_dial(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 5on_dial(void *data EINA_UNUSED, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
6{ 6{
7 const char *errname, *errmsg; 7 const char *errname, *errmsg;
8 const char *call_path; 8 const char *call_path;
diff --git a/src/examples/edbus/server.c b/src/examples/edbus/server.c
index 4953dde971..45eeab8c22 100644
--- a/src/examples/edbus/server.c
+++ b/src/examples/edbus/server.c
@@ -9,7 +9,7 @@
9static EDBus_Connection *conn; 9static EDBus_Connection *conn;
10 10
11static EDBus_Message * 11static EDBus_Message *
12_hello(const EDBus_Service_Interface *iface, const EDBus_Message *message) 12_hello(const EDBus_Service_Interface *iface EINA_UNUSED, const EDBus_Message *message)
13{ 13{
14 EDBus_Message *reply = edbus_message_method_return_new(message); 14 EDBus_Message *reply = edbus_message_method_return_new(message);
15 edbus_message_arguments_append(reply, "s", "Hello World"); 15 edbus_message_arguments_append(reply, "s", "Hello World");
@@ -18,7 +18,7 @@ _hello(const EDBus_Service_Interface *iface, const EDBus_Message *message)
18} 18}
19 19
20static EDBus_Message * 20static EDBus_Message *
21_quit(const EDBus_Service_Interface *iface, const EDBus_Message *message) 21_quit(const EDBus_Service_Interface *iface EINA_UNUSED, const EDBus_Message *message)
22{ 22{
23 printf("Quit\n"); 23 printf("Quit\n");
24 ecore_main_loop_quit(); 24 ecore_main_loop_quit();
@@ -48,7 +48,7 @@ send_signal_hello(void *data)
48} 48}
49 49
50static EDBus_Message * 50static EDBus_Message *
51_send_bool(const EDBus_Service_Interface *iface, const EDBus_Message *msg) 51_send_bool(const EDBus_Service_Interface *iface EINA_UNUSED, const EDBus_Message *msg)
52{ 52{
53 EDBus_Message *reply = edbus_message_method_return_new(msg); 53 EDBus_Message *reply = edbus_message_method_return_new(msg);
54 Eina_Bool bool; 54 Eina_Bool bool;
@@ -59,7 +59,7 @@ _send_bool(const EDBus_Service_Interface *iface, const EDBus_Message *msg)
59} 59}
60 60
61static EDBus_Message * 61static EDBus_Message *
62_send_byte(const EDBus_Service_Interface *iface, const EDBus_Message *msg) 62_send_byte(const EDBus_Service_Interface *iface EINA_UNUSED, const EDBus_Message *msg)
63{ 63{
64 EDBus_Message *reply = edbus_message_method_return_new(msg); 64 EDBus_Message *reply = edbus_message_method_return_new(msg);
65 unsigned char byte; 65 unsigned char byte;
@@ -70,7 +70,7 @@ _send_byte(const EDBus_Service_Interface *iface, const EDBus_Message *msg)
70} 70}
71 71
72static EDBus_Message * 72static EDBus_Message *
73_send_uint32(const EDBus_Service_Interface *iface, const EDBus_Message *msg) 73_send_uint32(const EDBus_Service_Interface *iface EINA_UNUSED, const EDBus_Message *msg)
74{ 74{
75 EDBus_Message *reply = edbus_message_method_return_new(msg); 75 EDBus_Message *reply = edbus_message_method_return_new(msg);
76 unsigned int uint32; 76 unsigned int uint32;
@@ -81,7 +81,7 @@ _send_uint32(const EDBus_Service_Interface *iface, const EDBus_Message *msg)
81} 81}
82 82
83static EDBus_Message * 83static EDBus_Message *
84_send_int32(const EDBus_Service_Interface *iface, const EDBus_Message *msg) 84_send_int32(const EDBus_Service_Interface *iface EINA_UNUSED, const EDBus_Message *msg)
85{ 85{
86 EDBus_Message *reply = edbus_message_method_return_new(msg); 86 EDBus_Message *reply = edbus_message_method_return_new(msg);
87 int int32; 87 int int32;
@@ -92,7 +92,7 @@ _send_int32(const EDBus_Service_Interface *iface, const EDBus_Message *msg)
92} 92}
93 93
94static EDBus_Message * 94static EDBus_Message *
95_send_int16(const EDBus_Service_Interface *iface, const EDBus_Message *msg) 95_send_int16(const EDBus_Service_Interface *iface EINA_UNUSED, const EDBus_Message *msg)
96{ 96{
97 EDBus_Message *reply = edbus_message_method_return_new(msg); 97 EDBus_Message *reply = edbus_message_method_return_new(msg);
98 short int int16; 98 short int int16;
@@ -103,7 +103,7 @@ _send_int16(const EDBus_Service_Interface *iface, const EDBus_Message *msg)
103} 103}
104 104
105static EDBus_Message * 105static EDBus_Message *
106_send_double(const EDBus_Service_Interface *iface, const EDBus_Message *msg) 106_send_double(const EDBus_Service_Interface *iface EINA_UNUSED, const EDBus_Message *msg)
107{ 107{
108 EDBus_Message *reply = edbus_message_method_return_new(msg); 108 EDBus_Message *reply = edbus_message_method_return_new(msg);
109 double d; 109 double d;
@@ -114,7 +114,7 @@ _send_double(const EDBus_Service_Interface *iface, const EDBus_Message *msg)
114} 114}
115 115
116static EDBus_Message * 116static EDBus_Message *
117_send_string(const EDBus_Service_Interface *iface, const EDBus_Message *msg) 117_send_string(const EDBus_Service_Interface *iface EINA_UNUSED, const EDBus_Message *msg)
118{ 118{
119 EDBus_Message *reply = edbus_message_method_return_new(msg); 119 EDBus_Message *reply = edbus_message_method_return_new(msg);
120 const char *txt; 120 const char *txt;
@@ -135,7 +135,7 @@ _resp_async(void *data)
135} 135}
136 136
137static EDBus_Message * 137static EDBus_Message *
138_async_test(const EDBus_Service_Interface *iface, const EDBus_Message *msg) 138_async_test(const EDBus_Service_Interface *iface EINA_UNUSED, const EDBus_Message *msg)
139{ 139{
140 EDBus_Message *reply = edbus_message_method_return_new(msg); 140 EDBus_Message *reply = edbus_message_method_return_new(msg);
141 printf("Received a call to AsyncTest.\n"); 141 printf("Received a call to AsyncTest.\n");
@@ -191,7 +191,7 @@ static const EDBus_Service_Interface_Desc iface_desc = {
191}; 191};
192 192
193static void 193static void
194on_name_request(void *data, const EDBus_Message *msg, EDBus_Pending *pending) 194on_name_request(void *data, const EDBus_Message *msg, EDBus_Pending *pending EINA_UNUSED)
195{ 195{
196 EDBus_Service_Interface *iface; 196 EDBus_Service_Interface *iface;
197 unsigned int reply; 197 unsigned int reply;