2014-02-10 07:43:13 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace nix {
|
|
|
|
|
|
|
|
#define SERVE_MAGIC_1 0x390c9deb
|
|
|
|
#define SERVE_MAGIC_2 0x5452eecb
|
|
|
|
|
2014-07-10 05:51:22 -04:00
|
|
|
#define SERVE_PROTOCOL_VERSION 0x200
|
2014-02-10 07:43:13 -05:00
|
|
|
#define GET_PROTOCOL_MAJOR(x) ((x) & 0xff00)
|
|
|
|
#define GET_PROTOCOL_MINOR(x) ((x) & 0x00ff)
|
|
|
|
|
|
|
|
typedef enum {
|
2014-07-10 05:51:22 -04:00
|
|
|
cmdQueryValidPaths = 1,
|
|
|
|
cmdQueryPathInfos = 2,
|
|
|
|
cmdDumpStorePath = 3,
|
|
|
|
cmdImportPaths = 4,
|
2014-07-11 10:02:19 -04:00
|
|
|
cmdExportPaths = 5,
|
|
|
|
cmdBuildPaths = 6,
|
2014-07-24 10:00:29 -04:00
|
|
|
cmdQueryClosure = 7,
|
2014-02-10 07:43:13 -05:00
|
|
|
} ServeCommand;
|
|
|
|
|
|
|
|
}
|