aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/worker-protocol.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/worker-protocol.hh')
-rw-r--r--src/libstore/worker-protocol.hh15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/libstore/worker-protocol.hh b/src/libstore/worker-protocol.hh
index c84060103..2d55d926a 100644
--- a/src/libstore/worker-protocol.hh
+++ b/src/libstore/worker-protocol.hh
@@ -48,25 +48,28 @@ struct WorkerProto
enum struct Op : uint64_t;
/**
+ * Version type for the protocol.
+ *
+ * @todo Convert to struct with separate major vs minor fields.
+ */
+ using Version = unsigned int;
+
+ /**
* A unidirectional read connection, to be used by the read half of the
* canonical serializers below.
- *
- * This currently is just a `Source &`, but more fields will be added
- * later.
*/
struct ReadConn {
Source & from;
+ Version version;
};
/**
* A unidirectional write connection, to be used by the write half of the
* canonical serializers below.
- *
- * This currently is just a `Sink &`, but more fields will be added
- * later.
*/
struct WriteConn {
Sink & to;
+ Version version;
};
/**