mirror of https://github.com/PurpleI2P/i2pd.git
R4SAS
6 years ago
15 changed files with 515 additions and 486 deletions
@ -0,0 +1,19 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||||
|
<resources> |
||||||
|
<string name="app_name">i2pd</string> |
||||||
|
<string name="action_stop">Остановить</string> |
||||||
|
<string name="action_graceful_stop">Корректная остановка</string> |
||||||
|
<string name="action_cancel_graceful_stop">Отменить мягкую остановку</string> |
||||||
|
<string name="graceful_stop_is_already_in_progress">Мягкая остановка уже запущена</string> |
||||||
|
<string name="graceful_stop_is_in_progress">Мягкая остановка запущена</string> |
||||||
|
<string name="already_stopped">Уже остановлено</string> |
||||||
|
<string name="uninitialized">Приложение инициализируется</string> |
||||||
|
<string name="starting">Приложение запускается</string> |
||||||
|
<string name="jniLibraryLoaded">Загружены JNI библиотеки</string> |
||||||
|
<string name="startedOkay">Приложение запущено</string> |
||||||
|
<string name="startFailed">Запуск не удался</string> |
||||||
|
<string name="gracefulShutdownInProgress">Мягкая остановка запущена</string> |
||||||
|
<string name="stopped">Приложение было остановлено</string> |
||||||
|
<string name="remaining">осталось</string> |
||||||
|
<string name="title_activity_i2_pdperms_asker_prompt">Запрос</string> |
||||||
|
</resources> |
@ -1,19 +1,19 @@ |
|||||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||||
<resources> |
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation"> |
||||||
<string name="app_name">i2pd</string> |
<string name="app_name">i2pd</string> |
||||||
<string name="action_stop">Stop</string> |
<string name="action_stop">Stop</string> |
||||||
<string name="action_graceful_stop">Graceful Stop</string> |
<string name="action_graceful_stop">Graceful Stop</string> |
||||||
<string name="action_cancel_graceful_stop">Cancel Graceful Stop</string> |
<string name="action_cancel_graceful_stop">Cancel Graceful Stop</string> |
||||||
<string name="graceful_stop_is_already_in_progress">Graceful stop is already in progress</string> |
<string name="graceful_stop_is_already_in_progress">Graceful stop is already in progress</string> |
||||||
<string name="graceful_stop_is_in_progress">Graceful stop is in progress</string> |
<string name="graceful_stop_is_in_progress">Graceful stop is in progress</string> |
||||||
<string name="already_stopped">Already stopped</string> |
<string name="already_stopped">Already stopped</string> |
||||||
<string name="uninitialized">i2pd initializing</string> |
<string name="uninitialized">Application initializing</string> |
||||||
<string name="starting">i2pd is starting</string> |
<string name="starting">Application starting</string> |
||||||
<string name="jniLibraryLoaded">i2pd: loaded JNI libraries</string> |
<string name="jniLibraryLoaded">Loaded JNI libraries</string> |
||||||
<string name="startedOkay">i2pd started</string> |
<string name="startedOkay">Application Started</string> |
||||||
<string name="startFailed">i2pd start failed</string> |
<string name="startFailed">Start failed</string> |
||||||
<string name="gracefulShutdownInProgress">i2pd: graceful shutdown in progress</string> |
<string name="gracefulShutdownInProgress">Graceful shutdown in progress</string> |
||||||
<string name="stopped">i2pd has stopped</string> |
<string name="stopped">Application stopped</string> |
||||||
<string name="remaining">remaining</string> |
<string name="remaining">remaining</string> |
||||||
<string name="title_activity_i2_pdperms_asker_prompt">Prompt</string> |
<string name="title_activity_i2_pdperms_asker_prompt">Prompt</string> |
||||||
</resources> |
</resources> |
||||||
|
@ -1,23 +1,25 @@ |
|||||||
package org.purplei2p.i2pd; |
package org.purplei2p.i2pd; |
||||||
|
|
||||||
public class I2PD_JNI { |
public class I2PD_JNI { |
||||||
public static native String getABICompiledWith(); |
public static native String getABICompiledWith(); |
||||||
|
|
||||||
/** |
/** |
||||||
* returns error info if failed |
* returns error info if failed |
||||||
* returns "ok" if daemon initialized and started okay |
* returns "ok" if daemon initialized and started okay |
||||||
*/ |
*/ |
||||||
public static native String startDaemon(); |
public static native String startDaemon(); |
||||||
//should only be called after startDaemon() success
|
|
||||||
public static native void stopDaemon(); |
//should only be called after startDaemon() success
|
||||||
|
public static native void stopDaemon(); |
||||||
|
|
||||||
public static native void stopAcceptingTunnels(); |
public static native void stopAcceptingTunnels(); |
||||||
|
|
||||||
public static native void startAcceptingTunnels(); |
public static native void startAcceptingTunnels(); |
||||||
|
|
||||||
public static native void onNetworkStateChanged(boolean isConnected); |
public static native void onNetworkStateChanged(boolean isConnected); |
||||||
|
|
||||||
public static void loadLibraries() { |
public static void loadLibraries() { |
||||||
System.loadLibrary("c++_shared"); |
//System.loadLibrary("c++_shared");
|
||||||
System.loadLibrary("i2pd"); |
System.loadLibrary("i2pd"); |
||||||
} |
} |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue