557b927992d61100467e40448fe6ecaca4c76f4b
[navit-package] / src / vehicle.h
1 #ifndef NAVIT_VEHICLE_H
2 #define NAVIT_VEHICLE_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 /* prototypes */
8 enum projection;
9 struct attr;
10 struct callback;
11 struct coord;
12 struct log;
13 struct navit;
14 struct vehicle;
15 enum projection vehicle_projection(struct vehicle *this_);
16 struct coord *vehicle_pos_get(struct vehicle *this_);
17 double *vehicle_speed_get(struct vehicle *this_);
18 double *vehicle_height_get(struct vehicle *this_);
19 double *vehicle_dir_get(struct vehicle *this_);
20 int *vehicle_status_get(struct vehicle *this_);
21 int *vehicle_sats_get(struct vehicle *this_);
22 int *vehicle_sats_used_get(struct vehicle *this_);
23 double *vehicle_pdop_get(struct vehicle *this_);
24 void vehicle_set_position(struct vehicle *this_, struct coord *pos);
25 void vehicle_set_navit(struct vehicle *this_, struct navit *nav);
26 struct vehicle *vehicle_new(const char *url);
27 void vehicle_callback_add(struct vehicle *this_, struct callback *cb);
28 void vehicle_callback_remove(struct vehicle *this_, struct callback *cb);
29 int vehicle_add_log(struct vehicle *this_, struct log *log, struct attr **attrs);
30 void vehicle_destroy(struct vehicle *this_);
31 /* end of prototypes */
32 #ifdef __cplusplus
33 }
34 #endif
35
36 #endif
37