aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/archive.hh
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-03-23 00:47:16 +0100
committereldritch horrors <pennae@lix.systems>2024-07-05 22:28:16 +0000
commit06220a71c1430c97bfcd8012b00530a987e40e97 (patch)
tree69f230d669db2804379a33fc1ec6e3d3fc908c67 /src/libutil/archive.hh
parentb51ea465de48e4c5516ba0182cc642b4e644be10 (diff)
libstore: convert dumpPath to a generator
Change-Id: Ic4cf5562504aa29130304469936f958c0426e5ef
Diffstat (limited to 'src/libutil/archive.hh')
-rw-r--r--src/libutil/archive.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libutil/archive.hh b/src/libutil/archive.hh
index f163a1947..7fc9b1b73 100644
--- a/src/libutil/archive.hh
+++ b/src/libutil/archive.hh
@@ -57,13 +57,13 @@ namespace nix {
* `+` denotes string concatenation.
* ```
*/
-void dumpPath(const Path & path, Sink & sink,
+WireFormatGenerator dumpPath(Path path,
PathFilter & filter = defaultPathFilter);
/**
* Same as dumpPath(), but returns the last modified date of the path.
*/
-time_t dumpPathAndGetMtime(const Path & path, Sink & sink,
+WireFormatGenerator dumpPathAndGetMtime(Path path, time_t & mtime,
PathFilter & filter = defaultPathFilter);
/**
@@ -71,7 +71,7 @@ time_t dumpPathAndGetMtime(const Path & path, Sink & sink,
*
* @param s Contents of the file.
*/
-void dumpString(std::string_view s, Sink & sink);
+WireFormatGenerator dumpString(std::string_view s);
/**
* \todo Fix this API, it sucks.