summaryrefslogtreecommitdiff
path: root/navit/route.h
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-03-25 20:45:52 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-03-25 20:45:52 +0000
commit3e43bc8ff8fbba833828122d1082d0d33c301fc0 (patch)
treea40ef561e3f1820776dae586682554ed3c8a18c3 /navit/route.h
parent8775165821b839e1b1e4749463f092bf13770f95 (diff)
downloadnavit-3e43bc8ff8fbba833828122d1082d0d33c301fc0.tar.gz
Add:Core:Improved commands
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2172 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/route.h')
-rw-r--r--navit/route.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/navit/route.h b/navit/route.h
index 1f323e14f..0b14c285a 100644
--- a/navit/route.h
+++ b/navit/route.h
@@ -28,6 +28,15 @@
#ifndef NAVIT_ROUTE_H
#define NAVIT_ROUTE_H
+enum route_status {
+ route_status_no_destination=0,
+ route_status_not_found=1|2,
+ route_status_building_path=1|4,
+ route_status_building_graph=1|4|8,
+ route_status_path_done_new=1|16,
+ route_status_path_done_incremental=1|32,
+};
+
struct route_crossing {
long segid;
int dir;
@@ -110,8 +119,10 @@ struct map *route_get_graph_map(struct route *route);
void route_toggle_routegraph_display(struct route *route);
void route_set_projection(struct route *this_, enum projection pro);
int route_destination_reached(struct route *this);
-void route_add_callback(struct route *this_, struct callback *cb);
-void route_remove_callback(struct route *this_, struct callback *cb);
+int route_set_attr(struct route *this_, struct attr *attr);
+int route_add_attr(struct route *this_, struct attr *attr);
+int route_remove_attr(struct route *this_, struct attr *attr);
+int route_get_attr(struct route *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
void route_init(void);
int route_pos_contains(struct route *this, struct item *item);
struct coord route_get_coord_dist(struct route *this_, int dist);