Update libsyncthing to v1.19.0

This commit is contained in:
Martchus 2022-02-01 13:21:01 +01:00
parent 30adde6432
commit c5c34bd83c
4 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,7 @@ set(META_PROJECT_TYPE library)
set(META_APP_NAME "Syncthing library")
set(META_APP_DESCRIPTION "Syncthing itself, built as a shared or static library")
set(META_PROJECT_VARNAME_UPPER LIB_SYNCTHING)
set(META_SYNCTHING_VERSION "v1.18.6")
set(META_SYNCTHING_VERSION "v1.19.0")
# add project files
set(HEADER_FILES interface.h)

@ -1 +1 @@
Subproject commit f7cff77ab1f4f4db02ca127a14842f5eaebdca1b
Subproject commit 1f46552dd30d15dd0cc6bf8c5504070d36f44447

View File

@ -152,7 +152,7 @@ std::int64_t runSyncthing(const RuntimeOptions &options)
}
return ::libst_run_syncthing(gostr(options.configDir), gostr(options.dataDir), gostr(options.guiAddress), gostr(options.guiApiKey),
options.flags & RuntimeFlags::Verbose, options.flags & RuntimeFlags::AllowNewerConfig, options.flags & RuntimeFlags::NoDefaultConfig,
options.flags & RuntimeFlags::EnsureConfigDirExists, options.flags & RuntimeFlags::EnsureDataDirExists);
options.flags & RuntimeFlags::SkipPortProbing, options.flags & RuntimeFlags::EnsureConfigDirExists, options.flags & RuntimeFlags::EnsureDataDirExists);
}
/*!

View File

@ -18,6 +18,7 @@ enum class RuntimeFlags : std::uint64_t {
NoDefaultConfig = (1 << 2),
EnsureConfigDirExists = (1 << 3),
EnsureDataDirExists = (1 << 4),
SkipPortProbing = (1 << 5),
};
constexpr bool operator&(RuntimeFlags lhs, RuntimeFlags rhs)