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

Contents of /navit/navit/android.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 29 - (show annotations) (download)
Tue Aug 21 19:31:50 2012 UTC (11 years, 8 months ago) by zoff99
File MIME type: text/plain
File size: 609 byte(s)
some fixes
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 JNIEnv* jni_getenv();
13
14 struct jni_object
15 {
16 JNIEnv* env;
17 jobject jo;
18 jmethodID jm;
19 };
20
21 #else
22
23 typedef int jobject;
24 typedef int jmethodID;
25
26 struct jni_object
27 {
28 int dummy;
29 };
30
31 #endif

   
Visit the ZANavi Wiki