summaryrefslogtreecommitdiff
path: root/src/other_tools/utils/parse_archive.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-09-11 11:59:52 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-09-11 14:52:07 +0200
commit7c476a707544f2de6ed7ecc296eb08591ca1a691 (patch)
tree99ccf450cb367f444a99b69b8c3ab507bb4c79a5 /src/other_tools/utils/parse_archive.hpp
parentb81206fe9885ed9f6fb0426d91ac607f7d8393c3 (diff)
downloadjustbuild-7c476a707544f2de6ed7ecc296eb08591ca1a691.tar.gz
Move ParseArchiveContent function to the header
...to remove code duplications in ReposToSetupMap.
Diffstat (limited to 'src/other_tools/utils/parse_archive.hpp')
-rw-r--r--src/other_tools/utils/parse_archive.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/other_tools/utils/parse_archive.hpp b/src/other_tools/utils/parse_archive.hpp
index 6d356dd4..bf7f02fc 100644
--- a/src/other_tools/utils/parse_archive.hpp
+++ b/src/other_tools/utils/parse_archive.hpp
@@ -20,6 +20,11 @@
#include "src/buildtool/build_engine/expression/expression.hpp"
#include "src/other_tools/ops_maps/content_cas_map.hpp"
+#include "src/utils/cpp/expected.hpp"
+
+auto ParseArchiveContent(ExpressionPtr const& repo_desc,
+ std::string const& origin)
+ -> expected<ArchiveContent, std::string>;
// Parse the description of an archive repository; if an error
// occurs, call the logger with fatal set to true and return std::nullopt