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

Contents of /navit/navit/android.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30 - (show annotations) (download)
Wed Aug 22 17:01:27 2012 UTC (7 years, 4 months ago) by zoff99
File MIME type: text/plain
File size: 879 byte(s)
ZANavi 2.0, lots of changes, everything in its own thread, more performance
1 #ifdef HAVE_API_ANDROID
2
3 #include <jni.h>
4 extern JNIEnv *jnienv;
5 extern JavaVM *cachedJVM;
6 extern jobject *android_activity;
7 extern struct callback_list *android_activity_cbl;
8 extern int android_version;
9 int android_find_class_global(char *name, jclass *ret);
10 int android_find_method(jclass class, char *name, char *args, jmethodID *ret);
11 int android_find_static_method(jclass class, char *name, char *args, jmethodID *ret);
12 void send_osd_values(char *id, char *text1, char *text2, char *text3, int i1, int i2, int i3, int i4, float f1, float f2, float f3);
13 void set_vehicle_values_to_java(int x, int y, int angle, int speed);
14 void set_vehicle_values_to_java_delta(int dx, int dy, int dangle);
15
16 JNIEnv* jni_getenv();
17
18 struct jni_object
19 {
20 JNIEnv* env;
21 jobject jo;
22 jmethodID jm;
23 };
24
25 #else
26
27 typedef int jobject;
28 typedef int jmethodID;
29
30 struct jni_object
31 {
32 int dummy;
33 };
34
35 #endif

   
Visit the ZANavi Wiki