diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2021-03-02 00:47:00 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2021-04-05 08:31:37 -0400 |
commit | 7a2b566dc8f0f94fdd6acbce90e47cd967f9f134 (patch) | |
tree | ebad2aae171ef7f10beca31e919301bb81ec2a69 /src/libstore/path-with-outputs.hh | |
parent | f7d9f7c3381acef38e4db2bb2f9e0287c289be54 (diff) |
Move `StorePathWithOutputs` into its own header/file
In the following commits it will become less prevalent.
Diffstat (limited to 'src/libstore/path-with-outputs.hh')
-rw-r--r-- | src/libstore/path-with-outputs.hh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/libstore/path-with-outputs.hh b/src/libstore/path-with-outputs.hh new file mode 100644 index 000000000..a9e3fc7c2 --- /dev/null +++ b/src/libstore/path-with-outputs.hh @@ -0,0 +1,17 @@ +#pragma once + +#include "path.hh" + +namespace nix { + +struct StorePathWithOutputs +{ + StorePath path; + std::set<std::string> outputs; + + std::string to_string(const Store & store) const; +}; + +std::pair<std::string_view, StringSet> parsePathWithOutputs(std::string_view s); + +} |