aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/os/DynamicLibraryBundle.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-06-20 20:01:38 +0200
committerSven Gothel <[email protected]>2013-06-20 20:01:38 +0200
commit8cabcd2de8b46c42dffcaaf46ccc2dc4d092ebba (patch)
treee2c8b0cf0dc6a7fdb07af07c0d7ffd422ccc9e6d /src/java/com/jogamp/common/os/DynamicLibraryBundle.java
parent9a0d4c81e8c38f454d7bb5cde433a32194d410fb (diff)
DynamicLookupHelper: Add secure isFunctionAvailable(..); NativeLibrary: Add TODO comments, re protected lookup functions.
Diffstat (limited to 'src/java/com/jogamp/common/os/DynamicLibraryBundle.java')
-rw-r--r--src/java/com/jogamp/common/os/DynamicLibraryBundle.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/java/com/jogamp/common/os/DynamicLibraryBundle.java b/src/java/com/jogamp/common/os/DynamicLibraryBundle.java
index b47c69b..fc36908 100644
--- a/src/java/com/jogamp/common/os/DynamicLibraryBundle.java
+++ b/src/java/com/jogamp/common/os/DynamicLibraryBundle.java
@@ -357,6 +357,7 @@ public class DynamicLibraryBundle implements DynamicLookupHelper {
return 0;
}
+ @Override
public final long dynamicLookupFunction(String funcName) {
if(!isToolLibLoaded() || null==funcName) {
if(DEBUG_LOOKUP && !isToolLibLoaded()) {
@@ -383,6 +384,11 @@ public class DynamicLibraryBundle implements DynamicLookupHelper {
}
return addr;
}
+
+ @Override
+ public final boolean isFunctionAvailable(String funcName) {
+ return 0 != dynamicLookupFunction(funcName);
+ }
/** Inherit access */
static final class GlueJNILibLoader extends JNILibLoaderBase {