feat: update toad-jni
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
package dev.toad;
|
||||
|
||||
import dev.toad.msg.MessageRef;
|
||||
import java.util.Optional;
|
||||
|
||||
public class Runtime {
|
||||
|
||||
public static native void init(RuntimeOptions o);
|
||||
private final long addr;
|
||||
|
||||
private Runtime() {}
|
||||
private static native long init(RuntimeOptions o);
|
||||
private native Optional<MessageRef> pollReq(RuntimeOptions o);
|
||||
|
||||
public Runtime(RuntimeOptions o) {
|
||||
this.addr = Runtime.init(o);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user