summaryrefslogtreecommitdiff
path: root/src/lib/elocation
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2014-10-28 17:01:07 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2014-11-11 11:10:11 +0100
commit1eb4ffcc4dc3bd84943767ed9b7a8da80153a1bb (patch)
tree0198824c69d3b135d2a5c24c73e43bae3e142782 /src/lib/elocation
parentc389e36ef5951fcc150782c3453afdf9e813e366 (diff)
elocation: Mute all unused parameter warnings
The signature is given by the callback so the only thing we can do here is to mute the warnings.
Diffstat (limited to 'src/lib/elocation')
-rw-r--r--src/lib/elocation/elocation.c60
1 files changed, 30 insertions, 30 deletions
diff --git a/src/lib/elocation/elocation.c b/src/lib/elocation/elocation.c
index a14d19e483..31065dc0ef 100644
--- a/src/lib/elocation/elocation.c
+++ b/src/lib/elocation/elocation.c
@@ -54,7 +54,7 @@ EAPI int ELOCATION_EVENT_POI;
54EAPI int ELOCATION_EVENT_META_READY; 54EAPI int ELOCATION_EVENT_META_READY;
55 55
56static void 56static void
57_dummy_free(void *user_data, void *func_data) 57_dummy_free(void *user_data EINA_UNUSED, void *func_data EINA_UNUSED)
58{ 58{
59 /* Don't free the event data after dispatching the event. We keep track of 59 /* Don't free the event data after dispatching the event. We keep track of
60 * it on our own 60 * it on our own
@@ -80,7 +80,7 @@ unmarshall_provider(const Eldbus_Message *reply, Elocation_Provider *provider)
80} 80}
81 81
82static void 82static void
83meta_address_provider_info_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) 83meta_address_provider_info_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED)
84{ 84{
85 const char *err, *errmsg; 85 const char *err, *errmsg;
86 Elocation_Provider *addr_provider; 86 Elocation_Provider *addr_provider;
@@ -106,7 +106,7 @@ meta_address_provider_info_cb(void *data, const Eldbus_Message *reply, Eldbus_Pe
106} 106}
107 107
108static void 108static void
109meta_position_provider_info_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) 109meta_position_provider_info_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED)
110{ 110{
111 const char *err, *errmsg; 111 const char *err, *errmsg;
112 Elocation_Provider *pos_provider; 112 Elocation_Provider *pos_provider;
@@ -253,7 +253,7 @@ unmarshall_address(const Eldbus_Message *reply, Elocation_Address *addr)
253 * variable set of key value pairs so we need to handle this with care 253 * variable set of key value pairs so we need to handle this with care
254 */ 254 */
255static void 255static void
256rgeocode_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) 256rgeocode_cb(void *data EINA_UNUSED, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED)
257{ 257{
258 const char *err, *errmsg; 258 const char *err, *errmsg;
259 259
@@ -277,7 +277,7 @@ rgeocode_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending)
277 * not in standard GeoClue but currently a Tizen extension. 277 * not in standard GeoClue but currently a Tizen extension.
278 */ 278 */
279static void 279static void
280poi_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) 280poi_cb(void *data EINA_UNUSED, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED)
281{ 281{
282 int32_t count, id, rank; 282 int32_t count, id, rank;
283 double lat, lon, bound_left, bound_top, bound_right, bound_bottom; 283 double lat, lon, bound_left, bound_top, bound_right, bound_bottom;
@@ -316,7 +316,7 @@ poi_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending)
316 316
317/* Unmarshall a GeoCode message */ 317/* Unmarshall a GeoCode message */
318static void 318static void
319geocode_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) 319geocode_cb(void *data EINA_UNUSED, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED)
320{ 320{
321 GeocluePositionFields fields; 321 GeocluePositionFields fields;
322 int32_t level; 322 int32_t level;
@@ -364,7 +364,7 @@ geocode_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending)
364} 364}
365 365
366static void 366static void
367address_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) 367address_cb(void *data EINA_UNUSED, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED)
368{ 368{
369 const char *err, *errmsg; 369 const char *err, *errmsg;
370 370
@@ -385,7 +385,7 @@ address_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending)
385} 385}
386 386
387static void 387static void
388address_signal_cb(void *data, const Eldbus_Message *reply) 388address_signal_cb(void *data EINA_UNUSED, const Eldbus_Message *reply)
389{ 389{
390 const char *err, *errmsg; 390 const char *err, *errmsg;
391 391
@@ -444,7 +444,7 @@ unmarshall_velocity(const Eldbus_Message *reply)
444} 444}
445 445
446static void 446static void
447velocity_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) 447velocity_cb(void *data EINA_UNUSED, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED)
448{ 448{
449 const char *err, *errmsg; 449 const char *err, *errmsg;
450 450
@@ -465,7 +465,7 @@ velocity_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending)
465} 465}
466 466
467static void 467static void
468velocity_signal_cb(void *data, const Eldbus_Message *reply) 468velocity_signal_cb(void *data EINA_UNUSED, const Eldbus_Message *reply)
469{ 469{
470 if (!unmarshall_velocity(reply)) 470 if (!unmarshall_velocity(reply))
471 { 471 {
@@ -495,7 +495,7 @@ unmarshall_nmea(const Eldbus_Message *reply)
495} 495}
496 496
497static void 497static void
498nmea_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) 498nmea_cb(void *data EINA_UNUSED, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED)
499{ 499{
500 const char *err, *errmsg; 500 const char *err, *errmsg;
501 501
@@ -516,7 +516,7 @@ nmea_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending)
516} 516}
517 517
518static void 518static void
519nmea_signal_cb(void *data, const Eldbus_Message *reply) 519nmea_signal_cb(void *data EINA_UNUSED, const Eldbus_Message *reply)
520{ 520{
521 if (!unmarshall_nmea(reply)) 521 if (!unmarshall_nmea(reply))
522 { 522 {
@@ -561,7 +561,7 @@ unmarshall_satellite(const Eldbus_Message *reply)
561} 561}
562 562
563static void 563static void
564satellite_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) 564satellite_cb(void *data EINA_UNUSED, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED)
565{ 565{
566 const char *err, *errmsg; 566 const char *err, *errmsg;
567 567
@@ -582,7 +582,7 @@ satellite_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending)
582} 582}
583 583
584static void 584static void
585last_satellite_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) 585last_satellite_cb(void *data EINA_UNUSED, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED)
586{ 586{
587 const char *err, *errmsg; 587 const char *err, *errmsg;
588 588
@@ -603,7 +603,7 @@ last_satellite_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pendi
603} 603}
604 604
605static void 605static void
606satellite_signal_cb(void *data, const Eldbus_Message *reply) 606satellite_signal_cb(void *data EINA_UNUSED, const Eldbus_Message *reply)
607{ 607{
608 if (!unmarshall_satellite(reply)) 608 if (!unmarshall_satellite(reply))
609 { 609 {
@@ -662,7 +662,7 @@ unmarshall_position(const Eldbus_Message *reply)
662} 662}
663 663
664static void 664static void
665position_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) 665position_cb(void *data EINA_UNUSED, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED)
666{ 666{
667 const char *err, *errmsg; 667 const char *err, *errmsg;
668 668
@@ -683,7 +683,7 @@ position_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending)
683} 683}
684 684
685static void 685static void
686position_signal_cb(void *data, const Eldbus_Message *reply) 686position_signal_cb(void *data EINA_UNUSED, const Eldbus_Message *reply)
687{ 687{
688 if (!unmarshall_position(reply)) 688 if (!unmarshall_position(reply))
689 { 689 {
@@ -696,21 +696,21 @@ position_signal_cb(void *data, const Eldbus_Message *reply)
696} 696}
697 697
698static Eina_Bool 698static Eina_Bool
699geoclue_start(void *data, int ev_type, void *event) 699geoclue_start(void *data EINA_UNUSED, int ev_type EINA_UNUSED, void *event EINA_UNUSED)
700{ 700{
701 DBG("GeoClue start event at %s", unique_name); 701 DBG("GeoClue start event at %s", unique_name);
702 return ECORE_CALLBACK_DONE; 702 return ECORE_CALLBACK_DONE;
703} 703}
704 704
705static Eina_Bool 705static Eina_Bool
706geoclue_stop(void *data, int ev_type, void *event) 706geoclue_stop(void *data EINA_UNUSED, int ev_type EINA_UNUSED, void *event EINA_UNUSED)
707{ 707{
708 DBG("GeoClue stop event"); 708 DBG("GeoClue stop event");
709 return ECORE_CALLBACK_DONE; 709 return ECORE_CALLBACK_DONE;
710} 710}
711 711
712static void 712static void
713_reference_add_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) 713_reference_add_cb(void *data EINA_UNUSED, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED)
714{ 714{
715 const char *err, *errmsg; 715 const char *err, *errmsg;
716 716
@@ -724,13 +724,13 @@ _reference_add_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pendi
724} 724}
725 725
726static void 726static void
727_reference_del_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) 727_reference_del_cb(void *data EINA_UNUSED, const Eldbus_Message *reply EINA_UNUSED, Eldbus_Pending *pending EINA_UNUSED)
728{ 728{
729 /* Dummy callback. We are not waiting for any reply here on shutdown */ 729 /* Dummy callback. We are not waiting for any reply here on shutdown */
730} 730}
731 731
732static void 732static void
733status_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) 733status_cb(void *data EINA_UNUSED, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED)
734{ 734{
735 const char *err, *errmsg; 735 const char *err, *errmsg;
736 736
@@ -755,7 +755,7 @@ status_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending)
755} 755}
756 756
757static void 757static void
758status_signal_cb(void *data, const Eldbus_Message *reply) 758status_signal_cb(void *data EINA_UNUSED, const Eldbus_Message *reply)
759{ 759{
760 /* We need this to be malloced to be passed to ecore_event_add. Or provide a dummy free callback. */ 760 /* We need this to be malloced to be passed to ecore_event_add. Or provide a dummy free callback. */
761 status = malloc(sizeof(*status)); 761 status = malloc(sizeof(*status));
@@ -772,7 +772,7 @@ status_signal_cb(void *data, const Eldbus_Message *reply)
772} 772}
773 773
774static void 774static void
775_dummy_cb(void *data, const Eldbus_Message *msg, Eldbus_Pending *pending) 775_dummy_cb(void *data EINA_UNUSED, const Eldbus_Message *msg EINA_UNUSED, Eldbus_Pending *pending EINA_UNUSED)
776{ 776{
777} 777}
778 778
@@ -784,7 +784,7 @@ _dummy_cb(void *data, const Eldbus_Message *msg, Eldbus_Pending *pending)
784 * to eager aplications. 784 * to eager aplications.
785 */ 785 */
786static void 786static void
787create_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending) 787create_cb(void *data EINA_UNUSED, const Eldbus_Message *reply, Eldbus_Pending *pending EINA_UNUSED)
788{ 788{
789 const char *object_path; 789 const char *object_path;
790 Eina_Bool updates; 790 Eina_Bool updates;
@@ -964,7 +964,7 @@ create_cb(void *data, const Eldbus_Message *reply, Eldbus_Pending *pending)
964} 964}
965 965
966static void 966static void
967_name_owner_changed(void *data, const char *bus, const char *old, const char *new) 967_name_owner_changed(void *data EINA_UNUSED, const char *bus EINA_UNUSED, const char *old, const char *new)
968{ 968{
969 if (old[0] == '\0' && new[0] != '\0') 969 if (old[0] == '\0' && new[0] != '\0')
970 { 970 {
@@ -986,7 +986,7 @@ _name_owner_changed(void *data, const char *bus, const char *old, const char *ne
986 986
987/* Public API function to request a landmarks position based on an address object */ 987/* Public API function to request a landmarks position based on an address object */
988EAPI Eina_Bool 988EAPI Eina_Bool
989elocation_landmarks_get(Elocation_Position *position_shadow, Elocation_Address *address_shadow) 989elocation_landmarks_get(Elocation_Position *position_shadow EINA_UNUSED, Elocation_Address *address_shadow EINA_UNUSED)
990{ 990{
991 Eldbus_Message *msg; 991 Eldbus_Message *msg;
992 Eldbus_Message_Iter *iter; 992 Eldbus_Message_Iter *iter;
@@ -1016,7 +1016,7 @@ elocation_landmarks_get(Elocation_Position *position_shadow, Elocation_Address *
1016 1016
1017/* Public API function to get an address from a position */ 1017/* Public API function to get an address from a position */
1018EAPI Eina_Bool 1018EAPI Eina_Bool
1019elocation_position_to_address(Elocation_Position *position_shadow, Elocation_Address *address_shadow) 1019elocation_position_to_address(Elocation_Position *position_shadow, Elocation_Address *address_shadow EINA_UNUSED)
1020{ 1020{
1021 Eldbus_Message *msg; 1021 Eldbus_Message *msg;
1022 Eldbus_Message_Iter *iter, *structure; 1022 Eldbus_Message_Iter *iter, *structure;
@@ -1042,7 +1042,7 @@ elocation_position_to_address(Elocation_Position *position_shadow, Elocation_Add
1042 1042
1043/* Public API function to get a position from and address */ 1043/* Public API function to get a position from and address */
1044EAPI Eina_Bool 1044EAPI Eina_Bool
1045elocation_address_to_position(Elocation_Address *address_shadow, Elocation_Position *position_shadow) 1045elocation_address_to_position(Elocation_Address *address_shadow, Elocation_Position *position_shadow EINA_UNUSED)
1046{ 1046{
1047 Eldbus_Message *msg; 1047 Eldbus_Message *msg;
1048 Eldbus_Message_Iter *iter, *array; 1048 Eldbus_Message_Iter *iter, *array;
@@ -1097,7 +1097,7 @@ elocation_address_to_position(Elocation_Address *address_shadow, Elocation_Posit
1097 * address 1097 * address
1098 */ 1098 */
1099EAPI Eina_Bool 1099EAPI Eina_Bool
1100elocation_freeform_address_to_position(const char *freeform_address, Elocation_Position *position_shadow) 1100elocation_freeform_address_to_position(const char *freeform_address, Elocation_Position *position_shadow EINA_UNUSED)
1101{ 1101{
1102 if (!eldbus_proxy_call(geonames_geocode, "FreeformAddressToPosition", geocode_cb, NULL, -1, "s", freeform_address)) 1102 if (!eldbus_proxy_call(geonames_geocode, "FreeformAddressToPosition", geocode_cb, NULL, -1, "s", freeform_address))
1103 { 1103 {