mirror of
https://github.com/NixOS/nix
synced 2025-06-28 13:41:15 +02:00
* In dumpPath(): pass a function object that allows files to be
selectively in/excluded from the dump.
This commit is contained in:
parent
3130f1f0fa
commit
b438d37558
2 changed files with 28 additions and 14 deletions
|
@ -45,7 +45,16 @@ namespace nix {
|
|||
|
||||
`+' denotes string concatenation. */
|
||||
|
||||
void dumpPath(const Path & path, Sink & sink);
|
||||
struct DumpFilter
|
||||
{
|
||||
virtual ~DumpFilter() { }
|
||||
virtual bool operator () (const Path & path) { return true; }
|
||||
};
|
||||
|
||||
extern DumpFilter defaultDumpFilter;
|
||||
|
||||
void dumpPath(const Path & path, Sink & sink,
|
||||
DumpFilter & filter = defaultDumpFilter);
|
||||
|
||||
void restorePath(const Path & path, Source & source);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue