From f0c8b7f255b17a2fcfcf622a78794cde07f033cd Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 26 Jan 2017 14:30:14 -0800 Subject: Get the JavaVM handle on Android targets --- Alc/compat.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Alc/compat.h') diff --git a/Alc/compat.h b/Alc/compat.h index 114fc655..247ed05b 100644 --- a/Alc/compat.h +++ b/Alc/compat.h @@ -46,4 +46,12 @@ void CloseLib(void *handle); void *GetSymbol(void *handle, const char *name); #endif +#ifdef __ANDROID__ +#define JCALL(obj, func) ((*(obj))->func((obj), EXTRACT_VCALL_ARGS +#define JCALL0(obj, func) ((*(obj))->func((obj) EXTRACT_VCALL_ARGS + +/** Returns a JNIEnv*. */ +void *Android_GetJNIEnv(void); +#endif + #endif /* AL_COMPAT_H */ -- cgit v1.2.3