]> err.no Git - mapper/blobdiff - src/route.h
Add header and cast properly.
[mapper] / src / route.h
index fb4082f561878e70f1039dcde1314b054be1e713..ee4eae4257515e6eade33fb8d066e235800e1108 100644 (file)
@@ -1,6 +1,4 @@
-#include <config.h>
-
-#define _GNU_SOURCE
+#include "config.h"
 
 #ifndef _MAPPER_ROUTE_H
 #define _MAPPER_ROUTE_H
@@ -43,7 +41,10 @@ guint64 _next_wpt_dist_squared;
 /** The singleton auto-route-download data. */
 AutoRouteDownloadData _autoroute_data;
 
-gboolean route_open_file();
+void route_init(void);
+void route_deinit(void);
+
+gboolean route_open_file(void);
 gboolean route_save(void);
 void route_clear(void);
 gboolean auto_route_dl_idle();
@@ -53,4 +54,5 @@ gboolean route_update_nears(gboolean quick);
 void route_show_distance_to_last();
 void route_show_distance_to_next();
 gboolean route_show_distance_to(Point * point);
+
 #endif