mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
672 B
Java
32 lines
672 B
Java
package network.loki.lokinet;
|
|
|
|
public class Lokinet_JNI {
|
|
|
|
public static final String STATUS_OK = "ok";
|
|
|
|
public static native String getABICompiledWith();
|
|
|
|
/**
|
|
* returns error info if failed
|
|
* returns "ok" if daemon initialized and started okay
|
|
*/
|
|
public static native String startLokinet(String config);
|
|
|
|
/**
|
|
* stop daemon if running
|
|
*/
|
|
public static native void stopLokinet();
|
|
|
|
/**
|
|
* change network status
|
|
*/
|
|
public static native void onNetworkStateChanged(boolean isConnected);
|
|
|
|
/**
|
|
* load jni libraries
|
|
*/
|
|
public static void loadLibraries() {
|
|
System.loadLibrary("lokinetandroid");
|
|
}
|
|
}
|