diff options
author | Shea Levy <shea@shealevy.com> | 2016-08-31T13·49-0400 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2016-08-31T13·49-0400 |
commit | 572aba284a161cb94532cec297785266ee719b99 (patch) | |
tree | 6bea5880b76947b51f64ee76293a99aedd977612 /src/libstore/download.hh | |
parent | aa1ea0d1e4720b8bf9f0e9c485e4712e0c915818 (diff) | |
parent | 59124228b3ac6120e73bc6a88b2c633a70bdf0fc (diff) |
Merge branch 'nix-channel-c++'
Diffstat (limited to 'src/libstore/download.hh')
-rw-r--r-- | src/libstore/download.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstore/download.hh b/src/libstore/download.hh index f22e688645b0..cb7de6ef1d99 100644 --- a/src/libstore/download.hh +++ b/src/libstore/download.hh @@ -21,6 +21,7 @@ struct DownloadResult { bool cached; string etag; + string effectiveUrl; std::shared_ptr<std::string> data; }; @@ -33,6 +34,11 @@ struct Downloader Path downloadCached(ref<Store> store, const string & url, bool unpack, string name = "", const Hash & expectedHash = Hash()); + /* Need to overload because can't have an rvalue default value for non-const reference */ + + Path downloadCached(ref<Store> store, const string & url, bool unpack, + string & effectiveUrl, const Hash & expectedHash = Hash()); + enum Error { NotFound, Forbidden, Misc, Transient }; }; |