1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 02:11:15 +02:00

Name the protocol version types

This makes the code clearer, and will help us replace them with proper
structs and get rid of the macros later.
This commit is contained in:
John Ericson 2023-10-17 11:15:36 -04:00
parent e92cac789f
commit ff68426095
6 changed files with 22 additions and 8 deletions

View file

@ -30,6 +30,13 @@ struct ServeProto
*/
enum struct Command : 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.