diff options
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 |