summaryrefslogtreecommitdiff
path: root/navit/vehicle.h
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-05-18 10:01:53 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-05-18 10:01:53 +0000
commit0b74d7f4ee6d448ac811e2741e8cb1ed04f5ce76 (patch)
treebe7bb1cb1020f4022e41c004e2fa9d561ea3580d /navit/vehicle.h
parentf46eb419c46011d6d103b7f06cb2c842a2cbe6c9 (diff)
downloadnavit-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/vehicle.h')
-rw-r--r--navit/vehicle.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/navit/vehicle.h b/navit/vehicle.h
new file mode 100644
index 000000000..971bd3f20
--- /dev/null
+++ b/navit/vehicle.h
@@ -0,0 +1,32 @@
+#ifndef NAVIT_VEHICLE_H
+#define NAVIT_VEHICLE_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+struct vehicle;
+struct vehicle_priv;
+enum attr_type;
+struct attr;
+
+struct vehicle_methods {
+ void (*destroy)(struct vehicle_priv *priv);
+ int (*position_attr_get)(struct vehicle_priv *priv, enum attr_type type, struct attr *attr);
+ int (*set_attr)(struct vehicle_priv *priv, struct attr *attr, struct attr **attrs);
+
+};
+
+/* prototypes */
+struct vehicle *vehicle_new(struct attr **attrs);
+int vehicle_get_attr(struct vehicle *this_, enum attr_type type, struct attr *attr);
+int vehicle_set_attr(struct vehicle *this_, struct attr *attr, struct attr **attrs);
+int vehicle_add_attr(struct vehicle *this_, struct attr *attr);
+int vehicle_remove_attr(struct vehicle *this_, struct attr *attr);
+void vehicle_destroy(struct vehicle *this_);
+/* end of prototypes */
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+