mirror of
https://github.com/NixOS/nix
synced 2025-07-04 15:31:47 +02:00
* Pass various options to the worker so that flags like -K or -j work
in multi-user Nix (NIX-72). * Client/worker: exchange a protocol version number for future compatibility.
This commit is contained in:
parent
26f981c2e5
commit
f3441e6122
5 changed files with 49 additions and 7 deletions
|
@ -5,8 +5,11 @@
|
|||
namespace nix {
|
||||
|
||||
|
||||
#define WORKER_MAGIC_1 0x6e697864
|
||||
#define WORKER_MAGIC_2 0x6478696e
|
||||
#define WORKER_MAGIC_1 0x6e697863
|
||||
#define WORKER_MAGIC_2 0x6478696f
|
||||
|
||||
#define PROTOCOL_VERSION 0x101
|
||||
#define GET_PROTOCOL_MAJOR(x) ((x) & 0xff00)
|
||||
|
||||
|
||||
typedef enum {
|
||||
|
@ -28,6 +31,7 @@ typedef enum {
|
|||
wopExportPath,
|
||||
wopImportPath,
|
||||
wopQueryDeriver,
|
||||
wopSetOptions,
|
||||
} WorkerOp;
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue