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

Contents of /navit/navit/android.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 34 - (hide annotations) (download)
Sat Dec 14 12:13:17 2013 UTC (10 years, 4 months ago) by zoff99
File MIME type: text/plain
File size: 890 byte(s)
lots of fixes and changes, new world map
1 zoff99 2 #ifdef HAVE_API_ANDROID
2    
3     #include <jni.h>
4     extern JNIEnv *jnienv;
5 zoff99 29 extern JavaVM *cachedJVM;
6 zoff99 2 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 zoff99 30 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 zoff99 34 void set_vehicle_values_to_java_delta(int dx, int dy, int dangle, int dzoom);
15 zoff99 30
16 zoff99 29 JNIEnv* jni_getenv();
17 zoff99 2
18 zoff99 27 struct jni_object
19     {
20 zoff99 2 JNIEnv* env;
21     jobject jo;
22     jmethodID jm;
23     };
24    
25     #else
26    
27 zoff99 28 typedef int jobject;
28     typedef int jmethodID;
29    
30 zoff99 27 struct jni_object
31     {
32 zoff99 2 int dummy;
33     };
34    
35     #endif

   
Visit the ZANavi Wiki