1
0
Fork 0
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:
Eelco Dolstra 2006-12-12 21:51:02 +00:00
parent 3130f1f0fa
commit b438d37558
2 changed files with 28 additions and 14 deletions

View file

@ -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);