mirror of
https://github.com/NixOS/nix
synced 2025-06-29 02:11:15 +02:00
Store: expose the protocol version used by a store
This commit is contained in:
parent
c9a08540c3
commit
070823baa4
6 changed files with 29 additions and 0 deletions
|
@ -598,6 +598,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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue