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

Contents of /navit/navit/vehicle.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 28 - (show annotations) (download)
Sun Jun 17 08:12:47 2012 UTC (7 years, 7 months ago) by zoff99
File MIME type: text/plain
File size: 2409 byte(s)
lots of new stuff and fixes
1 /**
2 * Navit, a modular navigation system.
3 * Copyright (C) 2005-2009 Navit Team
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public License
7 * version 2 as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 */
19
20 #ifndef NAVIT_VEHICLE_H
21 #define NAVIT_VEHICLE_H
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 struct point;
28 struct vehicle_priv;
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
38 struct vehicle_methods
39 {
40 void (*destroy)(struct vehicle_priv *priv);
41 int (*position_attr_get)(struct vehicle_priv *priv, enum attr_type type, struct attr *attr);
42 int (*set_attr)(struct vehicle_priv *priv, struct attr *attr);
43 void (*update_location_direct)(jobject location);
44 };
45
46 /* prototypes */
47 enum attr_type;
48 struct attr;
49 struct attr_iter;
50 struct cursor;
51 struct graphics;
52 struct point;
53 struct vehicle;
54 struct vehicle *vehicle_new(struct attr *parent, struct attr **attrs);
55 void vehicle_destroy(struct vehicle *this_);
56 struct attr_iter *vehicle_attr_iter_new(void);
57 void vehicle_attr_iter_destroy(struct attr_iter *iter);
58 int vehicle_get_attr(struct vehicle *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
59 int vehicle_set_attr(struct vehicle *this_, struct attr *attr);
60 int vehicle_add_attr(struct vehicle *this_, struct attr *attr);
61 int vehicle_remove_attr(struct vehicle *this_, struct attr *attr);
62 void vehicle_set_cursor(struct vehicle *this_, struct cursor *cursor, int overwrite);
63 void vehicle_draw(struct vehicle *this_, struct graphics *gra, struct point *pnt, int lazy, int angle, int speed);
64 int vehicle_get_cursor_data(struct vehicle *this_, struct point *pnt, int *angle, int *speed);
65 void vehicle_log_gpx_add_tag(char *tag, char **logstr);
66
67 void vehicle_update_(struct vehicle *this_, jobject location);
68
69 /* end of prototypes */
70
71 #ifdef __cplusplus
72 }
73 #endif
74
75 #endif
76

   
Visit the ZANavi Wiki