#include "map.h"
#include "map-download.h"
#include "route.h"
+#include "track.h"
#include "mapper-types.h"
#include "gps.h"
#include "settings-gconf.h"
}
void
-osso_cb_hw_state(osso_hw_state_t * state, gpointer data)
+osso_cb_hw_state(osso_hw_state_t *state, gpointer data)
{
static gboolean _must_save_data = FALSE;
gconf_client_clear_cache(gconf_client);
gps_conn_set_state(_gps, RCVR_OFF);
gps_disconnect(_gps);
- track_add(NULL);
+ track_add(_track, NULL);
/* Pretend autoroute is in progress to avoid download. */
if (_autoroute_data.enabled)
_autoroute_data.in_progress = TRUE;
#include "utils.h"
#include "poi.h"
+#include "path.h"
#include "route.h"
+#include "track.h"
#include "settings.h"
#include "gps.h"
#include "map.h"
{
g_assert(gps);
if (filter_check(&filter, &gps->data, &map_loc)==TRUE) {
- if (track_add(&_gps->data)) {
+ if (track_add(_track, &_gps->data)) {
KEEP_DISPLAY_ON();
route_check_waypoint_announce(_route, &_gps->data);
route_autoroute_check(_route);