Package de.intarsys.nativec.jna
Class JnaNativeLibrary
- java.lang.Object
-
- de.intarsys.nativec.jna.JnaNativeLibrary
-
- All Implemented Interfaces:
INativeLibrary
public class JnaNativeLibrary extends java.lang.Object implements INativeLibrary
-
-
Constructor Summary
Constructors Constructor Description JnaNativeLibrary(JnaNativeInterface nativeInterface, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description INativeFunction
getFunction(java.lang.String name)
Lookup aINativeFunction
from the library.INativeHandle
getGlobal(java.lang.String symbolName)
Lookup a global in the library.protected com.sun.jna.NativeLibrary
getLibrary()
protected JnaNativeInterface
getNativeInterface()
-
-
-
Constructor Detail
-
JnaNativeLibrary
public JnaNativeLibrary(JnaNativeInterface nativeInterface, java.lang.String name)
-
-
Method Detail
-
getFunction
public INativeFunction getFunction(java.lang.String name)
Description copied from interface:INativeLibrary
Lookup aINativeFunction
from the library.- Specified by:
getFunction
in interfaceINativeLibrary
- Parameters:
name
- The function name- Returns:
- The
INativeFunction
-
getGlobal
public INativeHandle getGlobal(java.lang.String symbolName)
Description copied from interface:INativeLibrary
Lookup a global in the library.- Specified by:
getGlobal
in interfaceINativeLibrary
- Parameters:
symbolName
- The global name- Returns:
- The
INativeHandle
to the global.
-
getLibrary
protected com.sun.jna.NativeLibrary getLibrary()
-
getNativeInterface
protected JnaNativeInterface getNativeInterface()
-
-