summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkj7.sung <kj7.sung@samsung.com>2017-06-29 09:45:40 +0900
committerkj7.sung <kj7.sung@samsung.com>2017-06-29 09:45:40 +0900
commit47722ff2df36002c3133be41fc4f8251e099dfdc (patch)
tree83f3f5d341ec0270e296392de5f80bf0319ebc92
parentaa713d34a617eaf177b1ef050ac9d9061ab697ed (diff)
downloadlocation-manager-47722ff2df36002c3133be41fc4f8251e099dfdc.tar.gz
location-manager-47722ff2df36002c3133be41fc4f8251e099dfdc.tar.bz2
location-manager-47722ff2df36002c3133be41fc4f8251e099dfdc.zip
Change-Id: I3265927d0a0510f81ab13abc18df7141bb9c808c Signed-off-by: kj7.sung <kj7.sung@samsung.com>
-rw-r--r--packaging/capi-location-manager.spec5
-rwxr-xr-xsrc/locations.c10
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;