]> err.no Git - mapper/blob - src/route.h
Add min/max zoom fields to repo struct
[mapper] / src / route.h
1 #include "config.h"
2
3 #ifndef _MAPPER_ROUTE_H
4 #define _MAPPER_ROUTE_H
5
6 #include <unistd.h>
7 #include <stdlib.h>
8 #include <string.h>
9 #include <strings.h>
10 #include <stddef.h>
11 #include <locale.h>
12 #include <math.h>
13 #include <errno.h>
14 #include <sys/wait.h>
15 #include <glib/gstdio.h>
16 #include <gtk/gtk.h>
17 #include <dbus/dbus-glib.h>
18
19 #include "utils.h"
20 #include "mapper-types.h"
21
22 /** The current route. */
23 Path *_route;
24
25 /** The singleton auto-route-download data. */
26 AutoRouteDownloadData _autoroute_data;
27
28 gboolean route_open_file(Path *route);
29 gboolean route_save(Path *route);
30 gboolean route_download(Path *route, gchar *to);
31 gboolean route_clear(Path *route);
32
33 void route_check_waypoint_announce(Path *route, GpsData *gps);
34 void route_autoroute_check(Path *route);
35
36 gboolean route_auto_route_dl_idle_cb();
37 void route_cancel_autoroute(Path *route, gboolean temporary);
38
39 void route_find_nearest_point(Path *route);
40 WayPoint *route_find_nearest_waypoint(Path *route, guint unitx, guint unity);
41
42 gboolean route_update_nears(Path *route, gboolean quick);
43
44 gboolean route_set_destination_from_last(Path *route, Position *pos);
45
46 gboolean route_show_distance_to(Path *route, Point *point);
47 void route_show_distance_to_last(Path *route);
48 void route_show_distance_to_next(Path *route);
49
50 #endif