diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-10-27T10·54+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-10-27T10·54+0200 |
commit | 63575ffa38650d84aaec04d7447f92cf06db52a5 (patch) | |
tree | d75eefdf9e6b879ae93bfad95740360184915b47 /src/libstore/store-api.hh | |
parent | 2cf98218c81c7563ba4c7a6016ffe6f5437678c4 (diff) | |
parent | ed25753501a7a3f77c097df01db299bdb60ede96 (diff) |
Merge branch 'nix-doctor' of https://github.com/LnL7/nix
Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r-- | src/libstore/store-api.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh index 099818ed6f69..106b2be5e6b2 100644 --- a/src/libstore/store-api.hh +++ b/src/libstore/store-api.hh @@ -599,6 +599,12 @@ public: a notion of connection. Otherwise this is a no-op. */ virtual void connect() { }; + /* Get the protocol version of this store or it's connection. */ + virtual unsigned int getProtocol() + { + return 0; + }; + /* Get the priority of the store, used to order substituters. In particular, binary caches can specify a priority field in their "nix-cache-info" file. Lower value means higher priority. */ |