1
0
mirror of https://github.com/PurpleI2P/i2pd-android.git synced 2025-01-09 06:17:53 +00:00
i2pd-android/app/jni/DaemonAndroid.h

54 lines
925 B
C
Raw Normal View History

2020-06-06 00:51:41 +00:00
/*
* Copyright (c) 2013-2022, The PurpleI2P Project
2020-06-06 00:51:41 +00:00
*
* This file is part of Purple i2pd project and licensed under BSD3
*
* See full license text in LICENSE file at top of project tree
*/
#ifndef DAEMON_ANDROID_H
#define DAEMON_ANDROID_H
#include <string>
namespace i2p
{
namespace android
{
class DaemonAndroidImpl
{
public:
DaemonAndroidImpl ();
~DaemonAndroidImpl ();
/**
* @return success
*/
bool init (int argc, char* argv[]);
void start ();
void stop ();
void restart ();
void setDataDir (std::string path);
2020-06-06 00:51:41 +00:00
};
/**
* returns "ok" if daemon init failed
* returns errinfo if daemon initialized and started okay
*/
std::string start ();
2020-06-06 00:51:41 +00:00
void stop ();
2020-06-06 00:51:41 +00:00
// set datadir received from jni
void SetDataDir (std::string jdataDir);
// get datadir
std::string GetDataDir (void);
// set webconsole language
void SetLanguage (std::string jlanguage);
2020-06-06 00:51:41 +00:00
}
}
#endif // DAEMON_ANDROID_H