update to rmmi

This commit is contained in:
Green Sky 2024-10-06 11:35:07 +02:00
parent 1f2aaf1ee9
commit a6c5886fb6
No known key found for this signature in database
4 changed files with 7 additions and 5 deletions

View File

@ -35,7 +35,7 @@ SOLANA_PLUGIN_EXPORT uint32_t solana_plugin_start(struct SolanaAPI* solana_api)
try {
auto* cr = PLUG_RESOLVE_INSTANCE_VERSIONED(Contact3Registry, "1");
auto* rmm = PLUG_RESOLVE_INSTANCE(RegistryMessageModel);
auto* rmm = PLUG_RESOLVE_INSTANCE(RegistryMessageModelI);
auto* os = PLUG_RESOLVE_INSTANCE(ObjectStore2);
auto* msnj = PLUG_RESOLVE_INSTANCE(MessageSerializerNJ);

View File

@ -5,6 +5,8 @@
#include <solanaceae/message_fragment_store/message_fragment_store.hpp>
#include <solanaceae/message3/message_serializer.hpp>
#include <solanaceae/message3/registry_message_model_impl.hpp>
#include <solanaceae/util/utils.hpp>
#include <nlohmann/json.hpp>
@ -34,7 +36,7 @@ int main(int argc, const char** argv) {
Backends::FilesystemStorage fsb_dst(os_dst, argv[2]);
Contact3Registry cr; // dummy
RegistryMessageModel rmm(cr); // dummy
RegistryMessageModelImpl rmm(cr); // dummy
// they only exist for the serializers (for now)
// TODO: version
MessageSerializerNJ msnj_src{cr, {}, {}};

View File

@ -481,7 +481,7 @@ bool MessageFragmentStore::syncFragToStorage(ObjectHandle fh, Message3Registry&
MessageFragmentStore::MessageFragmentStore(
Contact3Registry& cr,
RegistryMessageModel& rmm,
RegistryMessageModelI& rmm,
ObjectStore2& os,
StorageBackendI& sb,
MessageSerializerNJ& scnj

View File

@ -51,7 +51,7 @@ class MessageFragmentStore : public RegistryMessageModelEventI, public ObjectSto
protected:
Contact3Registry& _cr;
RegistryMessageModel& _rmm;
RegistryMessageModelI& _rmm;
ObjectStore2& _os;
StorageBackendI& _sb;
MessageSerializerNJ& _scnj;
@ -87,7 +87,7 @@ class MessageFragmentStore : public RegistryMessageModelEventI, public ObjectSto
public:
MessageFragmentStore(
Contact3Registry& cr,
RegistryMessageModel& rmm,
RegistryMessageModelI& rmm,
ObjectStore2& os,
StorageBackendI& sb,
MessageSerializerNJ& scnj