mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
28 lines
689 B
Java
28 lines
689 B
Java
package org.purplei2p.i2pd;
|
|
|
|
public class I2PD_JNI {
|
|
public static native String getABICompiledWith();
|
|
|
|
/**
|
|
* returns error info if failed
|
|
* returns "ok" if daemon initialized and started okay
|
|
*/
|
|
public static native String startDaemon();
|
|
|
|
//should only be called after startDaemon() success
|
|
public static native void stopDaemon();
|
|
|
|
public static native void stopAcceptingTunnels();
|
|
|
|
public static native void startAcceptingTunnels();
|
|
|
|
public static native void onNetworkStateChanged(boolean isConnected);
|
|
|
|
public static native void setDataDir(String jdataDir);
|
|
|
|
public static void loadLibraries() {
|
|
//System.loadLibrary("c++_shared");
|
|
System.loadLibrary("i2pd");
|
|
}
|
|
}
|