LocationAccuracy **accuracy)
{
LOCATION_LOGD("location_cps_get_last_position");
-
- LocationCpsPrivate *priv = GET_PRIVATE(self);
- g_return_val_if_fail (priv->mod, LOCATION_ERROR_NOT_AVAILABLE);
-
- int ret = LOCATION_ERROR_NONE;
- LocationVelocity *_velocity = NULL;
-
- LocModCpsOps ops = priv->mod->ops;
- g_return_val_if_fail (priv->mod->handler, LOCATION_ERROR_NOT_AVAILABLE);
- g_return_val_if_fail (ops.get_last_position, LOCATION_ERROR_NOT_AVAILABLE);
-
- ret = ops.get_last_position (priv->mod->handler, position, &_velocity, accuracy);
- if (_velocity) location_velocity_free(_velocity);
-
- return ret;
+ return LOCATION_ERROR_NOT_SUPPORTED;
}
static int
LocationAccuracy **accuracy)
{
LOCATION_LOGD("location_cps_get_last_position_ext");
-
- LocationCpsPrivate *priv = GET_PRIVATE(self);
- g_return_val_if_fail (priv->mod, LOCATION_ERROR_NOT_AVAILABLE);
-
- LocModCpsOps ops = priv->mod->ops;
- g_return_val_if_fail (priv->mod->handler, LOCATION_ERROR_NOT_AVAILABLE);
- g_return_val_if_fail (ops.get_last_position, LOCATION_ERROR_NOT_AVAILABLE);
-
- return ops.get_last_position (priv->mod->handler, position, velocity, accuracy);
+ return LOCATION_ERROR_NOT_SUPPORTED;
}
static int
vconftool set -t double db/location/last/wps/HorAccuracy "0.0" -f
vconftool set -t double db/location/last/wps/Speed "0.0" -f
vconftool set -t double db/location/last/wps/Direction "0.0" -f
-vconftool set -t int db/location/last/cps/Timestamp "0" -f
-vconftool set -t double db/location/last/cps/Latitude "0.0" -f
-vconftool set -t double db/location/last/cps/Longitude "0.0" -f
-vconftool set -t double db/location/last/cps/Altitude "0.0" -f
-vconftool set -t double db/location/last/cps/HorAccuracy "0.0" -f
vconftool set -t int db/location/setting/GpsEnabled "0" -g 6514 -f
vconftool set -t int db/location/setting/AgpsEnabled "0" -g 6514 -f
vconftool set -t int db/location/setting/NetworkEnabled "0" -g 6514 -f
-vconftool set -t int db/location/setting/SensorEnabled "0" -g 6514 -f
-
%postun -p /sbin/ldconfig