Martchus
6ab7662a64
* This allows running C++ GUI code (as provided by this repository) and Syncthing itself in the same process. * It basically seems to work. I can now run a Syncthing instance within the interactive C++ shell 'cling' :-) * Syncthing and its assets are built within the usual CMake build process but disabled by default because still experimental. To enable the build, add '-DNO_LIBSYNCTHING=OFF' to CMake arguments. * The Syncthing checkout with customized exports lives in the Git submodule under 'libsyncthing/go/src/github.com/syncthing/syncthing'.
24 lines
500 B
C++
24 lines
500 B
C++
#ifndef LIBSYNCTHING_INTERFACE_H
|
|
#define LIBSYNCTHING_INTERFACE_H
|
|
|
|
#include "./global.h"
|
|
|
|
#include <string>
|
|
|
|
namespace LibSyncthing {
|
|
|
|
struct RuntimeOptions {
|
|
std::string configDir;
|
|
std::string guiAddress;
|
|
std::string guiApiKey;
|
|
std::string logFile;
|
|
bool verbose = false;
|
|
};
|
|
|
|
void LIB_SYNCTHING_EXPORT runSyncthing(const RuntimeOptions &options);
|
|
void LIB_SYNCTHING_EXPORT generate(const std::string &generateDir);
|
|
|
|
} // namespace LibSyncthing
|
|
|
|
#endif // LIBSYNCTHING_INTERFACE_H
|