From 05d236515d37561a66b1e239984916e95a193cc8 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 17 Jun 2014 01:37:26 +0200 Subject: Adapt to GlueGen commit c3054a01990e55ab35756ea23ab7d7c05f24dd37 (compount call-by-value extension) --- make/config/joal-common-CustomJavaCode.java | 38 ----------------------------- 1 file changed, 38 deletions(-) delete mode 100644 make/config/joal-common-CustomJavaCode.java (limited to 'make/config/joal-common-CustomJavaCode.java') diff --git a/make/config/joal-common-CustomJavaCode.java b/make/config/joal-common-CustomJavaCode.java deleted file mode 100644 index 5df6cfd..0000000 --- a/make/config/joal-common-CustomJavaCode.java +++ /dev/null @@ -1,38 +0,0 @@ -static final DynamicLibraryBundle alDynamicLookupHelper; -private static final ALProcAddressTable alProcAddressTable; - -static { - alProcAddressTable = new ALProcAddressTable(); - if(null==alProcAddressTable) { - throw new RuntimeException("Couldn't instantiate ALProcAddressTable"); - } - - alDynamicLookupHelper = AccessController.doPrivileged(new PrivilegedAction() { - public DynamicLibraryBundle run() { - final DynamicLibraryBundle bundle = new DynamicLibraryBundle(new ALDynamicLibraryBundleInfo()); - if(null==bundle) { - throw new RuntimeException("Null ALDynamicLookupHelper"); - } - if(!bundle.isToolLibLoaded()) { - throw new RuntimeException("Couln't load native AL library"); - } - if(!bundle.isLibComplete()) { - throw new RuntimeException("Couln't load native AL/JNI glue library"); - } - alProcAddressTable.reset(bundle); - return bundle; - } } ); -} - -public static ALProcAddressTable getALProcAddressTable() { return alProcAddressTable; } - -static long alGetProcAddress(long alGetProcAddressHandle, java.lang.String procname) -{ - if (alGetProcAddressHandle == 0) { - throw new RuntimeException("Passed null pointer for method \"alGetProcAddress\""); - } - return dispatch_alGetProcAddressStatic(procname, alGetProcAddressHandle); -} - -static native long dispatch_alGetProcAddressStatic(String fname, long procAddress); - -- cgit v1.2.3