aboutsummaryrefslogtreecommitdiff
#pragma once

namespace nix {


#define WORKER_MAGIC_1 0x6e697863
#define WORKER_MAGIC_2 0x6478696f

#define PROTOCOL_VERSION 0x164
#define GET_PROTOCOL_MAJOR(x) ((x) & 0xff00)
#define GET_PROTOCOL_MINOR(x) ((x) & 0x00ff)


typedef enum {
    wopIsValidPath = 1,
    wopHasSubstitutes = 3,
    wopQueryPathHash = 4,
    wopQueryReferences = 5,
    wopQueryReferrers = 6,
    wopAddToStore = 7,
    wopAddTextToStore = 8,
    wopBuildPaths = 9,
    wopEnsurePath = 10,
    wopAddTempRoot = 11,
    wopAddIndirectRoot = 12,
    wopSyncWithGC = 13,
    wopFindRoots = 14,
    wopExportPath = 16,
    wopQueryDeriver = 18,
    wopSetOptions = 19,
    wopCollectGarbage = 20,
    wopQuerySubstitutablePathInfo = 21,
    wopQueryDerivationOutputs = 22,
    wopQueryAllValidPaths = 23,
    wopQueryFailedPaths = 24,
    wopClearFailedPaths = 25,
    wopQueryPathInfo = 26,
    wopImportPaths = 27,
    wopQueryDerivationOutputNames = 28,
    wopQueryPathFromHashPart = 29,
    wopQuerySubstitutablePathInfos = 30,
    wopQueryValidPaths = 31,
    wopQuerySubstitutablePaths = 32,
    wopQueryValidDerivers = 33,
    wopOptimiseStore = 34,
    wopVerifyStore = 35,
    wopBuiltinBuilders = 80,
    wopSubstituteURLs = 81
} WorkerOp;


#define STDERR_NEXT  0x6f6c6d67
#define STDERR_READ  0x64617461 // data needed from source
#define STDERR_WRITE 0x64617416 // data for sink
#define STDERR_LAST  0x616c7473
#define STDERR_ERROR 0x63787470


Path readStorePath(Source & from);
template<class T> T readStorePaths(Source & from);


}
>2022-07-23home: Add 'home-generation-base'....Ludovic Courtès 2021-12-19home: Add gexp-compiler for home-environments....Andrew Tropin 2018-05-19 00:14:51 +0200'>2018-05-19tests: Adjust to new "unbound variable" messages....Ludovic Courtès 2018-04-30guix system: search: Display default Shepherd service names....Ludovic Courtès 2018-03-24tests: Add tests for "guix system disk-image" et al....Chris Marusich 2017-12-06gnu, doc, tests: Use ‘bootloader-configuration’ everywhere....Tobias Geerinckx-Rice 2017-12-04tests: Look for multi-digit column numbers in unbound variable test....Eric Bavier 2017-11-10tests: Adjust to unbound-variable exception printer....Ludovic Courtès 2017-11-08gnu: Improve error reporting of the use-.*modules macros....Ludovic Courtès 2017-10-10ui: Improve reporting of missing closing parentheses....Ludovic Courtès 2017-09-16guix system: Add 'search' command....Ludovic Courtès 2017-03-15tests: Expect less accurate location info in 2.2.0....Ludovic Courtès 2016-07-20tests: Adjust to Shepherd error message change....Ludovic Courtès 2016-01-29services: Rename 'dmd' services to 'shepherd'....Alex Kost 2016-01-29Rename (gnu services dmd) to (gnu services shepherd)....Alex Kost 2015-12-14gexp: 'local-file' resolves relative file names....Ludovic Courtès 2015-11-24services: dmd: Error out upon unmet dmd requirements....Ludovic Courtès 2015-10-10guix system: Add '--derivation'....Ludovic Courtès 2015-05-25ui: Auto-compile user code, and improve error reporting....Ludovic Courtès 2015-05-24system: Make sure user accounts refer to existing groups....Ludovic Courtès 2015-03-26Fix remaining references to "substitute-binary"....Taylan Ulrich Bayırlı/Kammer