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 INativeFunctiongetFunction(java.lang.String name)Lookup aINativeFunctionfrom the library.INativeHandlegetGlobal(java.lang.String symbolName)Lookup a global in the library.protected com.sun.jna.NativeLibrarygetLibrary()protected JnaNativeInterfacegetNativeInterface()
-
-
-
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:INativeLibraryLookup aINativeFunctionfrom the library.- Specified by:
getFunctionin interfaceINativeLibrary- Parameters:
name- The function name- Returns:
- The
INativeFunction
-
getGlobal
public INativeHandle getGlobal(java.lang.String symbolName)
Description copied from interface:INativeLibraryLookup a global in the library.- Specified by:
getGlobalin interfaceINativeLibrary- Parameters:
symbolName- The global name- Returns:
- The
INativeHandleto the global.
-
getLibrary
protected com.sun.jna.NativeLibrary getLibrary()
-
getNativeInterface
protected JnaNativeInterface getNativeInterface()
-
-