Fix:Core:Renamed src to navit for cleanup of includes
[navit-package] / navit / vehicle.h
1 #ifndef NAVIT_VEHICLE_H
2 #define NAVIT_VEHICLE_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 struct vehicle;
8 struct vehicle_priv;
9 enum attr_type;
10 struct attr;
11
12 struct vehicle_methods {
13         void (*destroy)(struct vehicle_priv *priv);
14         int (*position_attr_get)(struct vehicle_priv *priv, enum attr_type type, struct attr *attr);
15         int (*set_attr)(struct vehicle_priv *priv, struct attr *attr, struct attr **attrs);
16
17 };
18
19 /* prototypes */
20 struct vehicle *vehicle_new(struct attr **attrs);
21 int vehicle_get_attr(struct vehicle *this_, enum attr_type type, struct attr *attr);
22 int vehicle_set_attr(struct vehicle *this_, struct attr *attr, struct attr **attrs);
23 int vehicle_add_attr(struct vehicle *this_, struct attr *attr);
24 int vehicle_remove_attr(struct vehicle *this_, struct attr *attr);
25 void vehicle_destroy(struct vehicle *this_);
26 /* end of prototypes */
27 #ifdef __cplusplus
28 }
29 #endif
30
31 #endif
32