diff options
author | Sven Gothel <[email protected]> | 2014-01-26 00:34:45 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-01-26 00:34:45 +0100 |
commit | 2b5522690722cb3b02a4b2aced6e4bd7b2f82dfe (patch) | |
tree | 44310a515a3aa77b55ff61bb4c2d230bf788f6f7 /make/joal-common-CustomJavaCode.java | |
parent | 23183ccf782c0252957c8d9cf2b51f70b9815acf (diff) |
Build: Move gluegen config files into make/config (cleanup)
Diffstat (limited to 'make/joal-common-CustomJavaCode.java')
-rw-r--r-- | make/joal-common-CustomJavaCode.java | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/make/joal-common-CustomJavaCode.java b/make/joal-common-CustomJavaCode.java deleted file mode 100644 index 5df6cfd..0000000 --- a/make/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<DynamicLibraryBundle>() { - 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); - |