Skip to content

Commit 3372860

Browse files
committed
update to rmmi
1 parent 99930c1 commit 3372860

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ CMakeCache.txt
2424

2525
*.tox
2626
imgui.ini
27+
config.json

plugins/plugin_sdbot-webui.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ SOLANA_PLUGIN_EXPORT uint32_t solana_plugin_start(struct SolanaAPI* solana_api)
3333

3434
try {
3535
auto* cr = PLUG_RESOLVE_INSTANCE_VERSIONED(Contact3Registry, "1");
36-
auto* rmm = PLUG_RESOLVE_INSTANCE(RegistryMessageModel);
36+
auto* rmm = PLUG_RESOLVE_INSTANCE(RegistryMessageModelI);
3737
auto* conf = PLUG_RESOLVE_INSTANCE(ConfigModelI);
3838

3939
// static store, could be anywhere tho

src/sd_bot.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <iostream>
1616

1717
struct Automatic1111_v1_Endpoint : public SDBot::EndpointI {
18-
Automatic1111_v1_Endpoint(RegistryMessageModel& rmm, std::default_random_engine& rng) : SDBot::EndpointI(rmm, rng) {}
18+
Automatic1111_v1_Endpoint(RegistryMessageModelI& rmm, std::default_random_engine& rng) : SDBot::EndpointI(rmm, rng) {}
1919

2020
bool handleResponse(Contact3 contact, ByteSpan data) override {
2121
//std::cout << std::string_view{reinterpret_cast<const char*>(data.ptr), data.size} << "\n";
@@ -61,7 +61,7 @@ struct Automatic1111_v1_Endpoint : public SDBot::EndpointI {
6161
};
6262

6363
struct SDcpp_wip1_Endpoint : public SDBot::EndpointI {
64-
SDcpp_wip1_Endpoint(RegistryMessageModel& rmm, std::default_random_engine& rng) : SDBot::EndpointI(rmm, rng) {}
64+
SDcpp_wip1_Endpoint(RegistryMessageModelI& rmm, std::default_random_engine& rng) : SDBot::EndpointI(rmm, rng) {}
6565

6666
bool handleResponse(Contact3 contact, ByteSpan data) override {
6767
//std::cout << std::string_view{reinterpret_cast<const char*>(data.ptr), data.size} << "\n";
@@ -131,7 +131,7 @@ struct SDcpp_wip1_Endpoint : public SDBot::EndpointI {
131131

132132
SDBot::SDBot(
133133
Contact3Registry& cr,
134-
RegistryMessageModel& rmm,
134+
RegistryMessageModelI& rmm,
135135
ConfigModelI& conf
136136
) : _cr(cr), _rmm(rmm), _conf(conf) {
137137
_rng.seed(std::random_device{}());

src/sd_bot.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct ConfigModelI;
2020

2121
class SDBot : public RegistryMessageModelEventI {
2222
Contact3Registry& _cr;
23-
RegistryMessageModel& _rmm;
23+
RegistryMessageModelI& _rmm;
2424
ConfigModelI& _conf;
2525

2626
//TransferManager& _tm;
@@ -38,9 +38,9 @@ class SDBot : public RegistryMessageModelEventI {
3838

3939
public:
4040
struct EndpointI {
41-
RegistryMessageModel& _rmm;
41+
RegistryMessageModelI& _rmm;
4242
std::default_random_engine& _rng;
43-
EndpointI(RegistryMessageModel& rmm, std::default_random_engine& rng) : _rmm(rmm), _rng(rng) {}
43+
EndpointI(RegistryMessageModelI& rmm, std::default_random_engine& rng) : _rmm(rmm), _rng(rng) {}
4444
virtual ~EndpointI(void) {}
4545

4646
virtual bool handleResponse(Contact3 contact, ByteSpan data) = 0;
@@ -52,7 +52,7 @@ class SDBot : public RegistryMessageModelEventI {
5252
public:
5353
SDBot(
5454
Contact3Registry& cr,
55-
RegistryMessageModel& rmm,
55+
RegistryMessageModelI& rmm,
5656
ConfigModelI& conf
5757
);
5858
~SDBot(void);

0 commit comments

Comments
 (0)