summaryrefslogtreecommitdiff
path: root/navit/vehicleprofile.h
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-04-12 06:37:36 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-04-12 06:37:36 +0000
commite474f8b91608e8aa23c5e5d0297e9fc0f2bd0828 (patch)
treed374b97c40b326ee01496587ed46f99b2c4f4e58 /navit/vehicleprofile.h
parent9ecdf6aec3d0fea7b84dc1cb38b81414a7c617db (diff)
downloadnavit-e474f8b91608e8aa23c5e5d0297e9fc0f2bd0828.tar.gz
Fix:Core:Made routing more flexible
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2203 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/vehicleprofile.h')
-rw-r--r--navit/vehicleprofile.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/navit/vehicleprofile.h b/navit/vehicleprofile.h
index bb09f5d2f..cbb727131 100644
--- a/navit/vehicleprofile.h
+++ b/navit/vehicleprofile.h
@@ -17,6 +17,16 @@
* Boston, MA 02110-1301, USA.
*/
+struct vehicleprofile {
+ int mode; /**< 0 = Auto, 1 = On-Road, 2 = Off-Road */
+ int flags_forward_mask; /**< Flags mask for moving in positive direction */
+ int flags_reverse_mask; /**< Flags mask for moving in reverse direction */
+ int flags; /**< Required flags to move through a segment */
+ int maxspeed_handling; /**< 0 = Always, 1 = Only if lower, 2 = Never */
+ struct attr **attrs;
+ GHashTable *roadprofile_hash;
+};
+
struct vehicleprofile * vehicleprofile_new(struct attr *parent, struct attr **attrs);
int vehicleprofile_get_attr(struct vehicleprofile *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
int vehicleprofile_set_attr(struct vehicleprofile *this_, struct attr *attr);