6 #define WORKER_MAGIC_1 0x6e697863
7 #define WORKER_MAGIC_2 0x6478696f
9 #define PROTOCOL_VERSION 0x163
10 #define GET_PROTOCOL_MAJOR(x) ((x) & 0xff00)
11 #define GET_PROTOCOL_MINOR(x) ((x) & 0x00ff)
16 wopHasSubstitutes
= 3,
18 wopQueryReferences
= 5,
19 wopQueryReferrers
= 6,
21 wopAddTextToStore
= 8,
25 wopAddIndirectRoot
= 12,
31 wopCollectGarbage
= 20,
32 wopQuerySubstitutablePathInfo
= 21,
33 wopQueryDerivationOutputs
= 22,
34 wopQueryAllValidPaths
= 23,
35 wopQueryFailedPaths
= 24,
36 wopClearFailedPaths
= 25,
37 wopQueryPathInfo
= 26,
39 wopQueryDerivationOutputNames
= 28,
40 wopQueryPathFromHashPart
= 29,
41 wopQuerySubstitutablePathInfos
= 30,
42 wopQueryValidPaths
= 31,
43 wopQuerySubstitutablePaths
= 32,
44 wopQueryValidDerivers
= 33,
45 wopOptimiseStore
= 34,
47 wopBuiltinBuilders
= 80
51 #define STDERR_NEXT 0x6f6c6d67
52 #define STDERR_READ 0x64617461 // data needed from source
53 #define STDERR_WRITE 0x64617416 // data for sink
54 #define STDERR_LAST 0x616c7473
55 #define STDERR_ERROR 0x63787470
58 Path
readStorePath(Source
& from
);
59 template<class T
> T
readStorePaths(Source
& from
);