aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/store-api.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-01-26 09:59:59 +0100
committerGitHub <noreply@github.com>2022-01-26 09:59:59 +0100
commit4f24a33d34a03a04610f6be196b1f3d64c2f4744 (patch)
tree78cbcd5a1af54544b728b3d986501432e6edecf2 /src/libstore/store-api.hh
parent5fa624f59af67a1b6b6c7bfd8f00a47520b34cce (diff)
parent35dbdbedd41dea45bf38ae11d74f72c39eb304c3 (diff)
Merge pull request #5991 from edolstra/remote-nix-version
nix store ping: Report Nix daemon version
Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r--src/libstore/store-api.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh
index 8306509f3..4068f8f35 100644
--- a/src/libstore/store-api.hh
+++ b/src/libstore/store-api.hh
@@ -765,6 +765,9 @@ public:
* (a no-op when there’s no daemon)
*/
virtual void setOptions() { }
+
+ virtual std::optional<std::string> getVersion() { return {}; }
+
protected:
Stats stats;