1 |
#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 |
struct jni_object {
|
13 |
JNIEnv* env;
|
14 |
jobject jo;
|
15 |
jmethodID jm;
|
16 |
};
|
17 |
|
18 |
#else
|
19 |
|
20 |
struct jni_object {
|
21 |
int dummy;
|
22 |
};
|
23 |
|
24 |
#endif
|