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:
parent
e92cac789f
commit
ff68426095
6 changed files with 22 additions and 8 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue