From 8f7be391e5e5b4986468c66d53e5b68aad92f93b Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Wed, 19 Aug 2020 15:41:56 +0200 Subject: [PATCH] wip: AglaisInterface => LogProtocolInterface Signed-off-by: Gergely Nagy --- src/Kaleidoscope-Simulator.h | 2 +- .../{AglaisInterface.cpp => LogProtocolInterface.cpp} | 4 ++-- .../simulator/{AglaisInterface.h => LogProtocolInterface.h} | 2 +- src/kaleidoscope/simulator/Simulator.h | 2 +- test/simulator/HelloWorld/tests.h | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) rename src/kaleidoscope/simulator/{AglaisInterface.cpp => LogProtocolInterface.cpp} (97%) rename src/kaleidoscope/simulator/{AglaisInterface.h => LogProtocolInterface.h} (93%) diff --git a/src/Kaleidoscope-Simulator.h b/src/Kaleidoscope-Simulator.h index 1a39cd0f..aafc4eca 100644 --- a/src/Kaleidoscope-Simulator.h +++ b/src/Kaleidoscope-Simulator.h @@ -20,4 +20,4 @@ #pragma once #include "kaleidoscope/simulator/Simulator.h" -#include "kaleidoscope/simulator/AglaisInterface.h" +#include "kaleidoscope/simulator/LogProtocolInterface.h" diff --git a/src/kaleidoscope/simulator/AglaisInterface.cpp b/src/kaleidoscope/simulator/LogProtocolInterface.cpp similarity index 97% rename from src/kaleidoscope/simulator/AglaisInterface.cpp rename to src/kaleidoscope/simulator/LogProtocolInterface.cpp index ec9374d7..83120d4e 100644 --- a/src/kaleidoscope/simulator/AglaisInterface.cpp +++ b/src/kaleidoscope/simulator/LogProtocolInterface.cpp @@ -18,7 +18,7 @@ #ifdef KALEIDOSCOPE_VIRTUAL_BUILD -#include "kaleidoscope/simulator/AglaisInterface.h" +#include "kaleidoscope/simulator/LogProtocolInterface.h" #include "kaleidoscope/simulator/reports/KeyboardReport.h" #include "kaleidoscope/simulator/reports/BootKeyboardReport.h" #include "kaleidoscope/simulator/reports/MouseReport.h" @@ -147,7 +147,7 @@ class SimulatorConsumerAdaptor : public log_protocol::Consumer_ { }; -void processAglaisDocument(const char *code, interface::Simulator_ &simulator) { +void processLogDocument(const char *code, interface::Simulator_ &simulator) { auto rwqa_state = simulator.getErrorIfReportWithoutQueuedActions(); log_protocol::LogProtocol a; diff --git a/src/kaleidoscope/simulator/AglaisInterface.h b/src/kaleidoscope/simulator/LogProtocolInterface.h similarity index 93% rename from src/kaleidoscope/simulator/AglaisInterface.h rename to src/kaleidoscope/simulator/LogProtocolInterface.h index ceaac3aa..db07c542 100644 --- a/src/kaleidoscope/simulator/AglaisInterface.h +++ b/src/kaleidoscope/simulator/LogProtocolInterface.h @@ -26,7 +26,7 @@ namespace interface { class Simulator_; } // namespace interface -void processAglaisDocument(const char *code, interface::Simulator_ &sim); +void processLogDocument(const char *code, interface::Simulator_ &sim); } // namespace simulator } // namespace kaleidoscope diff --git a/src/kaleidoscope/simulator/Simulator.h b/src/kaleidoscope/simulator/Simulator.h index 92c3d6c1..575d161a 100644 --- a/src/kaleidoscope/simulator/Simulator.h +++ b/src/kaleidoscope/simulator/Simulator.h @@ -41,7 +41,7 @@ uint8_t toKeycode(Key key) { #include "kaleidoscope/simulator/Interface.h" #include "kaleidoscope/simulator/Executor.h" -#include "kaleidoscope/simulator/AglaisInterface.h" +#include "kaleidoscope/simulator/LogProtocolInterface.h" #include "kaleidoscope/simulator/interface/Visualization.h" #include "kaleidoscope/simulator/actions/AssertLayerIsActive.h" diff --git a/test/simulator/HelloWorld/tests.h b/test/simulator/HelloWorld/tests.h index 9a8b1869..0b34211f 100644 --- a/test/simulator/HelloWorld/tests.h +++ b/test/simulator/HelloWorld/tests.h @@ -48,7 +48,7 @@ void runSimulator(Executor &simulator) { // simulator.permanentMouseReportActions().add(GenerateHostEvent{}); // simulator.permanentAbsoluteMouseReportActions().add(GenerateHostEvent{}); - processAglaisDocument(aglais_test_recording, simulator); + processLogDocument(aglais_test_recording, simulator); } const char aglais_test_recording[] =