public class JnaNativeLibrary extends java.lang.Object implements INativeLibrary
Constructor and Description |
---|
JnaNativeLibrary(JnaNativeInterface nativeInterface,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
INativeFunction |
getFunction(java.lang.String name)
Lookup a
INativeFunction from the library. |
INativeHandle |
getGlobal(java.lang.String symbolName)
Lookup a global in the library.
|
protected com.sun.jna.NativeLibrary |
getLibrary() |
protected JnaNativeInterface |
getNativeInterface() |
public JnaNativeLibrary(JnaNativeInterface nativeInterface, java.lang.String name)
public INativeFunction getFunction(java.lang.String name)
INativeLibrary
INativeFunction
from the library.getFunction
in interface INativeLibrary
name
- The function nameINativeFunction
public INativeHandle getGlobal(java.lang.String symbolName)
INativeLibrary
getGlobal
in interface INativeLibrary
symbolName
- The global nameINativeHandle
to the global.protected com.sun.jna.NativeLibrary getLibrary()
protected JnaNativeInterface getNativeInterface()