diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-05-18 10:01:53 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-05-18 10:01:53 +0000 |
commit | 0b74d7f4ee6d448ac811e2741e8cb1ed04f5ce76 (patch) | |
tree | be7bb1cb1020f4022e41c004e2fa9d561ea3580d /navit/route.h | |
parent | f46eb419c46011d6d103b7f06cb2c842a2cbe6c9 (diff) | |
download | navit-0b74d7f4ee6d448ac811e2741e8cb1ed04f5ce76.tar.gz |
Fix:Core:Renamed src to navit for cleanup of includes
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1059 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/route.h')
-rw-r--r-- | navit/route.h | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/navit/route.h b/navit/route.h new file mode 100644 index 000000000..9fb4268e2 --- /dev/null +++ b/navit/route.h @@ -0,0 +1,84 @@ +#ifndef NAVIT_ROUTE_H +#define NAVIT_ROUTE_H + +struct route_crossing { + long segid; + int dir; +}; + +struct route_crossings { + int count; + struct route_crossing crossing[0]; +}; + +struct street_data { + struct item item; + int count; + int flags; + struct coord c[0]; +}; + +#define route_item_first type_street_0 +#define route_item_last type_ferry + +/* prototypes */ +enum item_type; +struct coord; +struct displaylist; +struct item; +struct map_selection; +struct mapset; +struct route; +struct route_info; +struct route_info_handle; +struct route_path_coord_handle; +struct route_path_handle; +struct route_path_segment; +struct street_data; +struct tracking; +struct transformation; +struct route *route_new(struct attr **attrs); +void route_set_mapset(struct route *this, struct mapset *ms); +struct mapset *route_get_mapset(struct route *this); +struct route_info *route_get_pos(struct route *this); +struct route_info *route_get_dst(struct route *this); +int *route_get_speedlist(struct route *this); +int route_get_path_set(struct route *this); +int route_set_speed(struct route *this, enum item_type type, int value); +int route_contains(struct route *this, struct item *item); +void route_set_position(struct route *this, struct pcoord *pos); +void route_set_position_from_tracking(struct route *this, struct tracking *tracking); +struct map_selection *route_rect(int order, struct coord *c1, struct coord *c2, int rel, int abs); +void route_set_destination(struct route *this, struct pcoord *dst); +struct route_path_handle *route_path_open(struct route *this); +struct route_path_segment *route_path_get_segment(struct route_path_handle *h); +struct coord *route_path_segment_get_start(struct route_path_segment *s); +struct coord *route_path_segment_get_end(struct route_path_segment *s); +struct item *route_path_segment_get_item(struct route_path_segment *s); +int route_path_segment_get_length(struct route_path_segment *s); +int route_path_segment_get_time(struct route_path_segment *s); +void route_path_close(struct route_path_handle *h); +struct route_path_coord_handle *route_path_coord_open(struct route *this); +struct coord *route_path_coord_get(struct route_path_coord_handle *h); +void route_path_coord_close(struct route_path_coord_handle *h); +int route_time(int *speedlist, struct item *item, int len); +int route_info_length(struct route_info *pos, struct route_info *dst, int dir); +struct street_data *street_get_data(struct item *item); +struct street_data *street_data_dup(struct street_data *orig); +void street_data_free(struct street_data *sd); +void route_info_free(struct route_info *inf); +struct street_data *route_info_street(struct route_info *rinf); +struct coord *route_info_point(struct route_info *rinf, int point); +struct route_info_handle *route_info_open(struct route_info *start, struct route_info *end, int dir); +struct coord *route_info_get(struct route_info_handle *h); +void route_info_close(struct route_info_handle *h); +void route_draw(struct route *this, struct transformation *t, struct displaylist *dsp); +struct map *route_get_map(struct route *route); +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); +void route_init(void); +/* end of prototypes */ + +#endif + |