From 47722ff2df36002c3133be41fc4f8251e099dfdc Mon Sep 17 00:00:00 2001 From: "kj7.sung" Date: Thu, 29 Jun 2017 09:45:40 +0900 Subject: [PATCH] Test application moved to location package Change-Id: I3265927d0a0510f81ab13abc18df7141bb9c808c Signed-off-by: kj7.sung --- packaging/capi-location-manager.spec | 5 +++-- src/locations.c | 10 ++-------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/packaging/capi-location-manager.spec b/packaging/capi-location-manager.spec index 62a9ced..0471324 100644 --- a/packaging/capi-location-manager.spec +++ b/packaging/capi-location-manager.spec @@ -1,6 +1,6 @@ Name: capi-location-manager Summary: A Location Manager library in Tizen Native API -Version: 0.7.7 +Version: 0.7.8 Release: 1 Group: Location/API License: Apache-2.0 @@ -57,6 +57,7 @@ rm -rf %{buildroot} %manifest %{name}.manifest %license LICENSE %{_libdir}/libcapi-location-manager.so.* +%{_bindir}/location_test %files devel %{_includedir}/location/*.h @@ -64,7 +65,7 @@ rm -rf %{buildroot} %{_libdir}/libcapi-location-manager.so -%if 1 +%if 0 %package test Summary: Test application of Location Manager Group: Location/Testing diff --git a/src/locations.c b/src/locations.c index 6c2d8a0..eb53c24 100755 --- a/src/locations.c +++ b/src/locations.c @@ -245,10 +245,7 @@ static void __cb_zone_in(GObject *self, gpointer boundary, gpointer position, gp if (handle->user_cb[_LOCATIONS_EVENT_TYPE_BOUNDARY]) { LocationPosition *pos = (LocationPosition *) position; ((location_zone_changed_cb) handle->user_cb[_LOCATIONS_EVENT_TYPE_BOUNDARY])(LOCATIONS_BOUNDARY_IN, - pos->latitude, pos->longitude, - pos->altitude, pos->timestamp, - handle->user_data - [_LOCATIONS_EVENT_TYPE_BOUNDARY]); + pos->latitude, pos->longitude, pos->altitude, pos->timestamp, handle->user_data[_LOCATIONS_EVENT_TYPE_BOUNDARY]); } location_bounds_s *bounds; @@ -274,10 +271,7 @@ static void __cb_zone_out(GObject *self, gpointer boundary, gpointer position, g if (handle->user_cb[_LOCATIONS_EVENT_TYPE_BOUNDARY]) { LocationPosition *pos = (LocationPosition *) position; ((location_zone_changed_cb) handle->user_cb[_LOCATIONS_EVENT_TYPE_BOUNDARY])(LOCATIONS_BOUNDARY_OUT, - pos->latitude, pos->longitude, - pos->altitude, pos->timestamp, - handle->user_data - [_LOCATIONS_EVENT_TYPE_BOUNDARY]); + pos->latitude, pos->longitude, pos->altitude, pos->timestamp, handle->user_data[_LOCATIONS_EVENT_TYPE_BOUNDARY]); } location_bounds_s *bounds; -- 2.7.4