diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-01-19T16·59+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-01-19T16·59+0000 |
commit | e0f4e587c3a5110f57fbf4e85e14fdc606b1eaf6 (patch) | |
tree | c10ad0a943e6dac38b553b49633288dfee9ce84e /src/libstore/store.hh | |
parent | 96de272b48f8e9bdabffddb699ed4f2292d4f1d7 (diff) |
* Nix-store queries `--references' and `referers' to query the pointer
graph. That is, `nix-store --query --references PATH' shows the set of paths referenced by PATH, and `nix-store --query --referers PATH' shows the set of paths referencing PATH.
Diffstat (limited to 'src/libstore/store.hh')
-rw-r--r-- | src/libstore/store.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstore/store.hh b/src/libstore/store.hh index 239493a88b3f..8f5190f804c5 100644 --- a/src/libstore/store.hh +++ b/src/libstore/store.hh @@ -84,6 +84,10 @@ void setReferences(const Transaction & txn, const Path & storePath, result is not cleared. */ void queryReferences(const Path & storePath, PathSet & references); +/* Queries the set of incoming FS references for a store path. The + result is not cleared. */ +void queryReferers(const Path & storePath, PathSet & referers); + /* Constructs a unique store path name. */ Path makeStorePath(const string & type, const Hash & hash, const string & suffix); |