1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-16 15:32:43 +01:00

Make RemoteStore::ConnectionHandle part of class and expose

Will need to do subclass-specific implementations in the next commit.
This isn't because there will be multiple variations of the daemon
protocol (whew!) but because different clients pick and choose different
parts to use.
This commit is contained in:
John Ericson 2023-04-17 12:14:15 -04:00
parent 0a30b07277
commit 13269ba93b
3 changed files with 47 additions and 40 deletions

View file

@ -17,7 +17,6 @@ class Pid;
struct FdSink;
struct FdSource;
template<typename T> class Pool;
struct ConnectionHandle;
struct RemoteStoreConfig : virtual StoreConfig
{
@ -182,6 +181,8 @@ protected:
void setOptions() override;
struct ConnectionHandle;
ConnectionHandle getConnection();
friend struct ConnectionHandle;
@ -199,5 +200,4 @@ private:
std::shared_ptr<Store> evalStore);
};
}