diff options
author | bustersnyvel <bustersnyvel@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-07-26 22:36:19 +0000 |
---|---|---|
committer | bustersnyvel <bustersnyvel@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-07-26 22:36:19 +0000 |
commit | 326f6a7d828a92f3c1d812509b71fdc34ffa588b (patch) | |
tree | 8e5ad7edb3a139ee11137e59201327693168a8ee /navit/vehicleprofile.h | |
parent | 7f4c20f970181c4b11094b80b187d1320614c614 (diff) | |
download | navit-326f6a7d828a92f3c1d812509b71fdc34ffa588b.tar.gz |
add:core:Selecting the vehicle profile now works, but setting it on the vehicle doesn't, ticket #396
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2406 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/vehicleprofile.h')
-rw-r--r-- | navit/vehicleprofile.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/navit/vehicleprofile.h b/navit/vehicleprofile.h index c42498662..47ce832f3 100644 --- a/navit/vehicleprofile.h +++ b/navit/vehicleprofile.h @@ -25,7 +25,8 @@ struct vehicleprofile { int maxspeed_handling; /**< 0 = Always, 1 = Only if lower, 2 = Never */ int static_speed; /**< Maximum speed of vehicle to consider it stationary */ int static_distance; /**< Maximum distance of previous position of vehicle to consider it stationary */ - struct attr **attrs; + char *name; // the vehicle profile name + struct attr **attrs; GHashTable *roadprofile_hash; }; @@ -35,3 +36,6 @@ int vehicleprofile_set_attr(struct vehicleprofile *this_, struct attr *attr); int vehicleprofile_add_attr(struct vehicleprofile *this_, struct attr *attr); int vehicleprofile_remove_attr(struct vehicleprofile *this_, struct attr *attr); struct roadprofile * vehicleprofile_get_roadprofile(struct vehicleprofile *this_, enum item_type type); + +//! Returns the vehicle profile's name. +char * vehicleprofile_get_name(struct vehicleprofile *this_); |