diff options
author | Pierre Bourdon <delroth@gmail.com> | 2024-06-05 06:02:18 +0200 |
---|---|---|
committer | Rebecca Turner <rbt@sent.as> | 2024-08-26 16:27:31 -0700 |
commit | 4f02255c205378427f5831463c0c07e45382b2b2 (patch) | |
tree | 875efcf49a86ced24b37d72587bc4dfb153c4460 /src/libstore/ssh-store.cc | |
parent | ca08f1217d8779971d4f2b306a19ad5622360372 (diff) |
libstore: remove static initializers for Store registrations
Ref #359.
Change-Id: Ia45530ddee25fa9fc399ff10738bb0d8bbc8b221
Diffstat (limited to 'src/libstore/ssh-store.cc')
-rw-r--r-- | src/libstore/ssh-store.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libstore/ssh-store.cc b/src/libstore/ssh-store.cc index 80d10eb0f..94c0b7237 100644 --- a/src/libstore/ssh-store.cc +++ b/src/libstore/ssh-store.cc @@ -1,4 +1,4 @@ -#include "ssh-store-config.hh" +#include "ssh-store.hh" #include "store-api.hh" #include "local-fs-store.hh" #include "remote-store.hh" @@ -110,6 +110,8 @@ ref<RemoteStore::Connection> SSHStore::openConnection() return conn; } -static RegisterStoreImplementation<SSHStore, SSHStoreConfig> regSSHStore; +void registerSSHStore() { + StoreImplementations::add<SSHStore, SSHStoreConfig>(); +} } |