diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2020-06-19 18:06:19 -0400 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2020-06-19 18:06:19 -0400 |
commit | f2a6cee334255ced72a70f527cf3c283b4586e42 (patch) | |
tree | b7d7ea2e6a9462cc03e12374a588d75441b48eb7 /src/libstore/worker-protocol.hh | |
parent | e8e1f5282ff213be010cbe45772b9e725c01f285 (diff) |
Update worker protocol to support sending storepath maps
We need to also send the ca to daemon in addition to the path.
Diffstat (limited to 'src/libstore/worker-protocol.hh')
-rw-r--r-- | src/libstore/worker-protocol.hh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libstore/worker-protocol.hh b/src/libstore/worker-protocol.hh index ac42457fc..d2944674f 100644 --- a/src/libstore/worker-protocol.hh +++ b/src/libstore/worker-protocol.hh @@ -6,7 +6,7 @@ namespace nix { #define WORKER_MAGIC_1 0x6e697863 #define WORKER_MAGIC_2 0x6478696f -#define PROTOCOL_VERSION 0x115 +#define PROTOCOL_VERSION 0x116 #define GET_PROTOCOL_MAJOR(x) ((x) & 0xff00) #define GET_PROTOCOL_MINOR(x) ((x) & 0x00ff) @@ -69,5 +69,9 @@ template<class T> T readStorePaths(const Store & store, Source & from); void writeStorePaths(const Store & store, Sink & out, const StorePathSet & paths); +std::map<StorePath, std::optional<std::string>> readStorePathCAMap(const Store & store, Source & from); + +void writeStorePathCAMap(const Store & store, Sink & out, const StorePathCAMap & paths); + } |