diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-02-27 16:34:30 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-03-05 11:05:10 +0100 |
commit | d90076c91f7aa83c35a8a0c3840048178dfc1e39 (patch) | |
tree | 571f8c8a603d360d6b52715fa6acb28d90dcdcc7 /src/other_tools/utils/parse_archive.hpp | |
parent | cae2ec50abedb135bbeab2aae95fecebcfe977b3 (diff) | |
download | justbuild-d90076c91f7aa83c35a8a0c3840048178dfc1e39.tar.gz |
Add data structure for foreign-file roots
Diffstat (limited to 'src/other_tools/utils/parse_archive.hpp')
-rw-r--r-- | src/other_tools/utils/parse_archive.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/other_tools/utils/parse_archive.hpp b/src/other_tools/utils/parse_archive.hpp index 91f3e280..6d356dd4 100644 --- a/src/other_tools/utils/parse_archive.hpp +++ b/src/other_tools/utils/parse_archive.hpp @@ -30,4 +30,12 @@ auto ParseArchiveDescription(ExpressionPtr const& repo_desc, const AsyncMapConsumerLoggerPtr& logger) -> std::optional<ArchiveRepoInfo>; +// Parse the description of a foreign-file repository; if an error +// occurs, call the logger with fatal set to true and return std::nullopt +// instead. +auto ParseForeignFileDescription(ExpressionPtr const& repo_desc, + std::string const& origin, + const AsyncMapConsumerLoggerPtr& logger) + -> std::optional<ForeignFileInfo>; + #endif |