aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/fetchers/fetchers.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/fetchers/fetchers.hh')
-rw-r--r--src/libstore/fetchers/fetchers.hh8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libstore/fetchers/fetchers.hh b/src/libstore/fetchers/fetchers.hh
index 0a028cf7a..9c931dfa1 100644
--- a/src/libstore/fetchers/fetchers.hh
+++ b/src/libstore/fetchers/fetchers.hh
@@ -93,7 +93,13 @@ std::unique_ptr<Input> inputFromAttrs(const Attrs & attrs);
void registerInputScheme(std::unique_ptr<InputScheme> && fetcher);
-StorePath downloadFile(
+struct DownloadFileResult
+{
+ StorePath storePath;
+ std::string etag;
+};
+
+DownloadFileResult downloadFile(
ref<Store> store,
const std::string & url,
const std::string & name,