diff options
Diffstat (limited to 'navit/route_protected.h')
-rw-r--r-- | navit/route_protected.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/navit/route_protected.h b/navit/route_protected.h index 586fde91d..32d61e9bd 100644 --- a/navit/route_protected.h +++ b/navit/route_protected.h @@ -140,7 +140,9 @@ struct route_graph_segment { * each segment. */ struct route_graph { - int busy; /**< The graph is being built */ + int busy; /**< Route calculation is in progress: the graph is being built, + * flooded or the path is being built (a more detailed status can be + * obtained from the route’s status attribute) */ struct map_selection *sel; /**< The rectangle selection for the graph */ struct mapset_handle *h; /**< Handle to the mapset */ struct map *m; /**< Pointer to the currently active map */ @@ -150,7 +152,7 @@ struct route_graph { struct callback *done_cb; /**< Callback when graph is done */ struct event_idle *idle_ev; /**< The pointer to the idle event */ struct route_graph_segment *route_segments; /**< Pointer to the first route_graph_segment in the linked list of all segments */ - struct route_graph_segment *avoid_seg; + struct route_graph_segment *avoid_seg; /**< Segment to which a turnaround penalty (if active) applies */ struct fibheap *heap; /**< Priority queue for points to be expanded */ #define HASH_SIZE 8192 struct route_graph_point *hash[HASH_SIZE]; /**< A hashtable containing all route_graph_points in this graph */ @@ -160,6 +162,7 @@ struct route_graph { /* prototypes */ struct route_graph * route_get_graph(struct route *this_); struct map_selection * route_get_selection(struct route * this_); +void route_free_selection(struct map_selection *sel); void route_add_traffic_distortion(struct route *this_, struct item *item); void route_remove_traffic_distortion(struct route *this_, struct item *item); void route_change_traffic_distortion(struct route *this_, struct item *item); |