#include "config.h"
#endif
-#include "location/location-setting.h"
-#include "location/location-log.h"
+#include "location-setting.h"
+#include "location-log.h"
-#include "location/location-module-internal.h"
+#include "module-internal.h"
-#include "location/location-sps.h"
-#include "location/location-marshal.h"
-#include "location/location-ielement.h"
-#include "location/location-signaling-util.h"
-#include "location/location-common-util.h"
+#include "location-sps.h"
+#include "location-marshal.h"
+#include "location-ielement.h"
+#include "location-signaling-util.h"
+#include "location-common-util.h"
typedef struct _LocationSpsPrivate {
LocationSpsMod* mod;
}
static int
+location_sps_get_last_position (LocationSps *self,
+ LocationPosition **position,
+ LocationAccuracy **accuracy)
+{
+ LOCATION_LOGD("location_sps_get_last_position");
+ return LOCATION_ERROR_NOT_SUPPORTED;
+}
+
+static int
location_sps_get_velocity (LocationSps *self,
LocationVelocity **velocity,
LocationAccuracy **accuracy)
return ops.get_velocity(priv->mod->handler, velocity, accuracy);
}
+static int
+location_sps_get_last_velocity (LocationSps *self,
+ LocationVelocity **velocity,
+ LocationAccuracy **accuracy)
+{
+ LOCATION_LOGD("location_sps_get_last_velocity");
+ return LOCATION_ERROR_NOT_SUPPORTED;
+}
+
+static int
+location_sps_get_satellite (LocationSps *self,
+ LocationSatellite **satellite)
+{
+ LOCATION_LOGD("location_sps_get_satellite");
+ return LOCATION_ERROR_NOT_SUPPORTED;
+}
+
+static int
+location_sps_get_last_satellite (LocationSps *self,
+ LocationSatellite **satellite)
+{
+ LOCATION_LOGD("location_sps_get_last_satellite");
+ return LOCATION_ERROR_NOT_SUPPORTED;
+}
+
static void
location_ielement_interface_init (LocationIElementInterface *iface)
{
iface->start = (TYPE_START_FUNC)location_sps_start;
iface->stop = (TYPE_STOP_FUNC)location_sps_stop;
iface->get_position = (TYPE_GET_POSITION)location_sps_get_position;
+ iface->get_last_position = (TYPE_GET_POSITION)location_sps_get_last_position;
iface->get_velocity = (TYPE_GET_VELOCITY)location_sps_get_velocity;
+ iface->get_last_velocity = (TYPE_GET_VELOCITY)location_sps_get_last_velocity;
+ iface->get_satellite = (TYPE_GET_SATELLITE)location_sps_get_satellite;
+ iface->get_last_satellite = (TYPE_GET_SATELLITE)location_sps_get_last_satellite;
}
static void