diff options
author | Griffin Smith <grfn@gws.fyi> | 2020-08-02T00·23-0400 |
---|---|---|
committer | glittershark <grfn@gws.fyi> | 2020-08-03T17·32+0000 |
commit | 209489e348904aa2e2cddc64340ea44ab3074dfd (patch) | |
tree | aa51897d25f6e9ff86a53a41f72f0c8bc3d104e5 /third_party/nix/src/libstore/store-api.hh | |
parent | 8a1c7da357873a645405c0f5b8cc75d751dedb83 (diff) |
feat(3p/nix): Implement two more RPC calls r/1567
Implement AddTextToStore and BuildPaths both on the client and the server Refs: #29 Change-Id: I45294c3e1c1a7489e42099d36425b7acc04e0427 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1560 Reviewed-by: kanepyork <rikingcoding@gmail.com> Tested-by: BuildkiteCI
Diffstat (limited to 'third_party/nix/src/libstore/store-api.hh')
-rw-r--r-- | third_party/nix/src/libstore/store-api.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/third_party/nix/src/libstore/store-api.hh b/third_party/nix/src/libstore/store-api.hh index 327a08c85204..7764ae8b83e0 100644 --- a/third_party/nix/src/libstore/store-api.hh +++ b/third_party/nix/src/libstore/store-api.hh @@ -184,7 +184,10 @@ enum BuildMode { bmNormal, bmRepair, bmCheck }; // Convert the proto version of a `nix::proto::BuildMode` to its corresponding // nix `BuildMode` -std::optional<BuildMode> build_mode_from(nix::proto::BuildMode mode); +std::optional<BuildMode> BuildModeFrom(nix::proto::BuildMode mode); + +// Convert a `nix::BuildMode` to its corresponding proto representation +nix::proto::BuildMode BuildModeToProto(BuildMode mode); struct BuildResult { /* Note: don't remove status codes, and only add new status codes |