/[zanavi_public1]/navit/navit/vehicle.h
ZANavi

Diff of /navit/navit/vehicle.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2 Revision 28
25#endif 25#endif
26 26
27struct point; 27struct point;
28struct vehicle_priv; 28struct vehicle_priv;
29 29
30#ifdef HAVE_API_ANDROID
31#include <jni.h>
32#endif
33
34#ifndef HAVE_API_ANDROID
35typedef int jobject;
36#endif
37
30struct vehicle_methods { 38struct 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 */
37enum attr_type; 47enum attr_type;
38struct attr; 48struct attr;
51int vehicle_remove_attr(struct vehicle *this_, struct attr *attr); 61int vehicle_remove_attr(struct vehicle *this_, struct attr *attr);
52void vehicle_set_cursor(struct vehicle *this_, struct cursor *cursor, int overwrite); 62void vehicle_set_cursor(struct vehicle *this_, struct cursor *cursor, int overwrite);
53void vehicle_draw(struct vehicle *this_, struct graphics *gra, struct point *pnt, int lazy, int angle, int speed); 63void vehicle_draw(struct vehicle *this_, struct graphics *gra, struct point *pnt, int lazy, int angle, int speed);
54int vehicle_get_cursor_data(struct vehicle *this_, struct point *pnt, int *angle, int *speed); 64int vehicle_get_cursor_data(struct vehicle *this_, struct point *pnt, int *angle, int *speed);
55void vehicle_log_gpx_add_tag(char *tag, char **logstr); 65void vehicle_log_gpx_add_tag(char *tag, char **logstr);
66
67void 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

Legend:
Removed from v.2  
changed lines
  Added in v.28

   
Visit the ZANavi Wiki