Skip to content
Snippets Groups Projects
Commit f0cbe613 authored by Mick Jordan's avatar Mick Jordan
Browse files

remove refactored methods

parent 892c733c
No related branches found
No related tags found
No related merge requests found
......@@ -112,33 +112,6 @@ public class JNI_Base implements BaseRFFI {
}
}
@Override
public Object dlopen(String path, boolean local, boolean now) {
long handle = native_dlopen(path, local, now);
if (handle == 0) {
return null;
} else {
return new Long(handle);
}
}
@Override
public long dlsym(Object handle, String symbol) {
long nativeHandle = (Long) handle;
return native_dlsym(nativeHandle, symbol);
}
@Override
public int dlclose(Object handle) {
long nativeHandle = (Long) handle;
return native_dlclose(nativeHandle);
}
@Override
public String dlerror() {
return native_dlerror();
}
@Override
public UtsName uname() {
return JNI_UtsName.get();
......
......@@ -70,32 +70,6 @@ public interface BaseRFFI {
*/
int chmod(String path, int mode);
/**
* Open a DLL.
*
* @return {@code null} on error, opaque handle for following calls otherwise.
*/
Object dlopen(String path, boolean local, boolean now);
/**
* Search for {@code symbol} in DLL specified by {@code handle}.
*
* @return value of symbol, may be zero, check {@link #dlerror} for error case.
*/
long dlsym(Object handle, String symbol);
/**
* Close DLL specified by {@code handle}.
*/
int dlclose(Object handle);
/**
* Get any error message.
*
* @return {@code null} if no error, message otherwise.
*/
String dlerror();
/**
* Convert string to long.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment