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 | 956fc7380aac2e92aa46401b252abcfec2be660e (patch) | |
tree | 8e5ad7edb3a139ee11137e59201327693168a8ee /navit/vehicleprofile.h | |
parent | 2f773b5fb3e5667e045d5b038f57ee5a412eac0b (diff) | |
download | navit-svn-956fc7380aac2e92aa46401b252abcfec2be660e.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 c4249866..47ce832f 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_); |