diff options
Diffstat (limited to 'src/libutil/archive.hh')
-rw-r--r-- | src/libutil/archive.hh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/libutil/archive.hh b/src/libutil/archive.hh index c70ef3f1c8..70e836055c 100644 --- a/src/libutil/archive.hh +++ b/src/libutil/archive.hh @@ -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); |