… | |
… | |
25 | #endif |
25 | #endif |
26 | |
26 | |
27 | struct point; |
27 | struct point; |
28 | struct vehicle_priv; |
28 | struct vehicle_priv; |
29 | |
29 | |
|
|
30 | #ifdef HAVE_API_ANDROID |
|
|
31 | #include <jni.h> |
|
|
32 | #endif |
|
|
33 | |
|
|
34 | #ifndef HAVE_API_ANDROID |
|
|
35 | typedef int jobject; |
|
|
36 | #endif |
|
|
37 | |
30 | struct vehicle_methods { |
38 | struct vehicle_methods |
|
|
39 | { |
31 | void (*destroy)(struct vehicle_priv *priv); |
40 | void (*destroy)(struct vehicle_priv *priv); |
32 | int (*position_attr_get)(struct vehicle_priv *priv, enum attr_type type, struct attr *attr); |
41 | int (*position_attr_get)(struct vehicle_priv *priv, enum attr_type type, struct attr *attr); |
33 | int (*set_attr)(struct vehicle_priv *priv, struct attr *attr); |
42 | int (*set_attr)(struct vehicle_priv *priv, struct attr *attr); |
|
|
43 | void (*update_location_direct)(jobject location); |
34 | }; |
44 | }; |
35 | |
45 | |
36 | /* prototypes */ |
46 | /* prototypes */ |
37 | enum attr_type; |
47 | enum attr_type; |
38 | struct attr; |
48 | struct attr; |
… | |
… | |
51 | int vehicle_remove_attr(struct vehicle *this_, struct attr *attr); |
61 | int vehicle_remove_attr(struct vehicle *this_, struct attr *attr); |
52 | void vehicle_set_cursor(struct vehicle *this_, struct cursor *cursor, int overwrite); |
62 | void vehicle_set_cursor(struct vehicle *this_, struct cursor *cursor, int overwrite); |
53 | void vehicle_draw(struct vehicle *this_, struct graphics *gra, struct point *pnt, int lazy, int angle, int speed); |
63 | void vehicle_draw(struct vehicle *this_, struct graphics *gra, struct point *pnt, int lazy, int angle, int speed); |
54 | int vehicle_get_cursor_data(struct vehicle *this_, struct point *pnt, int *angle, int *speed); |
64 | int vehicle_get_cursor_data(struct vehicle *this_, struct point *pnt, int *angle, int *speed); |
55 | void vehicle_log_gpx_add_tag(char *tag, char **logstr); |
65 | void vehicle_log_gpx_add_tag(char *tag, char **logstr); |
|
|
66 | |
|
|
67 | void vehicle_update_(struct vehicle *this_, jobject location); |
|
|
68 | |
56 | /* end of prototypes */ |
69 | /* end of prototypes */ |
57 | |
70 | |
58 | #ifdef __cplusplus |
71 | #ifdef __cplusplus |
59 | } |
72 | } |
60 | #endif |
73 | #endif |