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

Contents of /navit/navit/android.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 28 - (hide annotations) (download)
Sun Jun 17 08:12:47 2012 UTC (11 years, 10 months ago) by zoff99
File MIME type: text/plain
File size: 561 byte(s)
lots of new stuff and fixes
1 zoff99 2 #ifdef HAVE_API_ANDROID
2    
3     #include <jni.h>
4     extern JNIEnv *jnienv;
5     extern jobject *android_activity;
6     extern struct callback_list *android_activity_cbl;
7     extern int android_version;
8     int android_find_class_global(char *name, jclass *ret);
9     int android_find_method(jclass class, char *name, char *args, jmethodID *ret);
10     int android_find_static_method(jclass class, char *name, char *args, jmethodID *ret);
11    
12 zoff99 27 struct jni_object
13     {
14 zoff99 2 JNIEnv* env;
15     jobject jo;
16     jmethodID jm;
17     };
18    
19     #else
20    
21 zoff99 28 typedef int jobject;
22     typedef int jmethodID;
23    
24 zoff99 27 struct jni_object
25     {
26 zoff99 2 int dummy;
27     };
28    
29     #endif

   
Visit the ZANavi Wiki