jnr.ffi.provider.jffi.AbstractAsmLibraryInterface Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jnr-unixsocket-nodep Show documentation
Show all versions of jnr-unixsocket-nodep Show documentation
com.github.jnr:jnr-unixsocket with orh.objectweb.asm shaded
package jnr.ffi.provider.jffi;
import jnr.ffi.provider.LoadedLibrary;
/**
*
*/
public abstract class AbstractAsmLibraryInterface implements LoadedLibrary {
public static final com.kenai.jffi.Invoker ffi = com.kenai.jffi.Invoker.getInstance();
public static final NativeRuntime runtime = NativeRuntime.getInstance();
// Strong ref to keep the library alive
protected final NativeLibrary library;
public AbstractAsmLibraryInterface(NativeLibrary library) {
this.library = library;
}
public final jnr.ffi.Runtime getRuntime() {
return runtime;
}
final NativeLibrary getLibrary() {
return library;
}
}