summaryrefslogtreecommitdiff
path: root/navit/android.h
blob: d26602e306893c189a1f96cdc9dece3066facec3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifdef HAVE_API_ANDROID

#include <jni.h>
extern JNIEnv *jnienv;
extern jobject *android_activity;
extern struct callback_list *android_activity_cbl;
extern int android_version;
int android_find_class_global(char *name, jclass *ret);
int android_find_method(jclass class, char *name, char *args, jmethodID *ret);
int android_find_static_method(jclass class, char *name, char *args, jmethodID *ret);

struct jni_object {
	JNIEnv* env;
	jobject jo;
	jmethodID jm;
};

#else

struct jni_object {
	int dummy;
};

#endif