![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
#include "nix/store/common-protocol.hh"Go to the source code of this file.
Macros | |
| #define | SERVE_MAGIC_1 0x390c9deb |
| #define | SERVE_MAGIC_2 0x5452eecb |
| #define | SERVE_PROTOCOL_VERSION (2 << 8 | 8) |
| #define | GET_PROTOCOL_MAJOR(x) |
| #define | GET_PROTOCOL_MINOR(x) |
| #define | DECLARE_SERVE_SERIALISER(T) |
| #define | COMMA_ , |
Functions | |
| Sink & | nix::operator<< (Sink &sink, ServeProto::Command op) |
| std::ostream & | nix::operator<< (std::ostream &s, ServeProto::Command op) |
| #define DECLARE_SERVE_SERIALISER | ( | T | ) |
Declare a canonical serialiser pair for the worker protocol.
We specialise the struct merely to indicate that we are implementing the function for the given type.
Some sort of template<...> must be used with the caller for this to be legal specialization syntax. See below for what that looks like in practice.
| #define GET_PROTOCOL_MAJOR | ( | x | ) |
| #define GET_PROTOCOL_MINOR | ( | x | ) |
|
inline |
Convenience for sending operation codes.
|
inline |
Convenience for debugging.