aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/os/DynamicLookupHelper.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/DynamicLookupHelper.java
parent9a0d4c81e8c38f454d7bb5cde433a32194d410fb (diff)
DynamicLookupHelper: Add secure isFunctionAvailable(..); NativeLibrary: Add TODO comments, re protected lookup functions.
Diffstat (limited to 'src/java/com/jogamp/common/os/DynamicLookupHelper.java')
-rw-r--r--src/java/com/jogamp/common/os/DynamicLookupHelper.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/java/com/jogamp/common/os/DynamicLookupHelper.java b/src/java/com/jogamp/common/os/DynamicLookupHelper.java
index 20fd01e..94a7e92 100644
--- a/src/java/com/jogamp/common/os/DynamicLookupHelper.java
+++ b/src/java/com/jogamp/common/os/DynamicLookupHelper.java
@@ -51,7 +51,12 @@ public interface DynamicLookupHelper {
public static final boolean DEBUG_LOOKUP = Debug.debug("NativeLibrary.Lookup");
/**
- * Try to fetch the function pointer for function 'funcName'.
+ * Returns the function handle for function 'funcName'.
*/
public long dynamicLookupFunction(String funcName);
+
+ /**
+ * Queries whether function 'funcName' is available.
+ */
+ public boolean isFunctionAvailable(String funcName);
}