location_manager_s *handle = (location_manager_s *) userdata;
if (handle->user_cb[_LOCATIONS_EVENT_TYPE_SERVICE_STATE])
((location_service_state_changed_cb)
- handle->user_cb[_LOCATIONS_EVENT_TYPE_SERVICE_STATE])(LOCATIONS_SERVICE_DISABLED,handle->user_data[_LOCATIONS_EVENT_TYPE_SERVICE_STATE]);
+ handle->user_cb[_LOCATIONS_EVENT_TYPE_SERVICE_STATE])(LOCATIONS_SERVICE_DISABLED, handle->user_data[_LOCATIONS_EVENT_TYPE_SERVICE_STATE]);
}
static int __compare_position(gconstpointer a, gconstpointer b)
}
return LOCATIONS_ERROR_NONE;
- } else {
+ } else {
if ((LOCATIONS_METHOD_GPS == method) && (__is_gps_supported() == LOCATIONS_ERROR_NOT_SUPPORTED)) {
LOCATIONS_LOGE("LOCATIONS_ERROR_NOT_SUPPORTED(0x%08x)", LOCATIONS_ERROR_NOT_SUPPORTED);
return LOCATIONS_ERROR_NOT_SUPPORTED;
- }
- else if ((LOCATIONS_METHOD_WPS == method) && (__is_wps_supported() == LOCATIONS_ERROR_NOT_SUPPORTED)) {
+ } else if ((LOCATIONS_METHOD_WPS == method) && (__is_wps_supported() == LOCATIONS_ERROR_NOT_SUPPORTED)) {
LOCATIONS_LOGE("LOCATIONS_ERROR_NOT_SUPPORTED(0x%08x)", LOCATIONS_ERROR_NOT_SUPPORTED);
return LOCATIONS_ERROR_NOT_SUPPORTED;
}
location_coord_list[2].latitude = 30;
location_coord_list[2].longitude = 10;
- //Checking coordinates in location boundary
+ /* Checking coordinates in location boundary */
location_coords_s testLocationCoordinates;
testLocationCoordinates.latitude = 20;
testLocationCoordinates.longitude = 12;
fprintf(stderr, "location_bounds_create_polygon: %d\n", nRet);
- bIsContained = location_bounds_contains_coordinates(hPolyLocationBound, testLocationCoordinates);// Target API
+ bIsContained = location_bounds_contains_coordinates(hPolyLocationBound, testLocationCoordinates);
fprintf(stderr, "bIsContained: %d\n", bIsContained);
location_bounds_destroy(hPolyLocationBound);
ret = location_manager_set_position_updated_cb(manager, _position_updated_cb, interval, (void *)manager);
fprintf(stderr, "set_position_updated_cb: %d\n", ret);
}
- }
- else {
+ } else {
test_timer = g_timeout_add_seconds(1, wait_test, NULL);
}