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 |
29 |
JNIEnv* jni_getenv();
|
13 |
zoff99 |
2 |
|
14 |
zoff99 |
27 |
struct jni_object
|
15 |
|
|
{
|
16 |
zoff99 |
2 |
JNIEnv* env;
|
17 |
|
|
jobject jo;
|
18 |
|
|
jmethodID jm;
|
19 |
|
|
};
|
20 |
|
|
|
21 |
|
|
#else
|
22 |
|
|
|
23 |
zoff99 |
28 |
typedef int jobject;
|
24 |
|
|
typedef int jmethodID;
|
25 |
|
|
|
26 |
zoff99 |
27 |
struct jni_object
|
27 |
|
|
{
|
28 |
zoff99 |
2 |
int dummy;
|
29 |
|
|
};
|
30 |
|
|
|
31 |
|
|
#endif
|