diff options
author | Dzmitry Zaitsau <pradd.me@gmail.com> | 2019-02-21T10·44+0100 |
---|---|---|
committer | Dzmitry Zaitsau <pradd.me@gmail.com> | 2019-02-25T16·59+0100 |
commit | 07f992a74b64f4376d5b415d0042babc924772f3 (patch) | |
tree | 65b730daf2fd0920750ddb58ce853f96c24c2d11 /src/libstore/store-api.hh | |
parent | 6bfb082ea298ac4366d4808f3a1b7c065cf89302 (diff) |
Extract and expose splitUriAndParams function
which splits a URL into localtor and parameter parts
Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r-- | src/libstore/store-api.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh index f504735e0f84..ad0f8df11b84 100644 --- a/src/libstore/store-api.hh +++ b/src/libstore/store-api.hh @@ -798,4 +798,8 @@ ValidPathInfo decodeValidPathInfo(std::istream & str, for paths created by makeFixedOutputPath() / addToStore(). */ std::string makeFixedOutputCA(bool recursive, const Hash & hash); + +/* Split URI into protocol+hierarchy part and its parameter set. */ +std::pair<std::string, Store::Params> splitUriAndParams(const std::string & uri); + } |