summaryrefslogtreecommitdiff
path: root/src/app_console/include/app_console.hpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-08-30 16:48:10 +1000
committerjacqueline <me@jacqueline.id.au>2023-08-30 16:48:10 +1000
commit320fdeb9d8355d3c361d5c6d60de8afc64501af9 (patch)
treef0d5a2ab82199c78ad6768c6b18ba1239a0b7ee4 /src/app_console/include/app_console.hpp
parent4247c9fe7d25c921fbfc73fc50e849c8780e7ad6 (diff)
downloadtangara-fw-320fdeb9d8355d3c361d5c6d60de8afc64501af9.tar.gz
Use a service locator instead of passing around subsets of drivers between FSMs
Diffstat (limited to 'src/app_console/include/app_console.hpp')
-rw-r--r--src/app_console/include/app_console.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/app_console/include/app_console.hpp b/src/app_console/include/app_console.hpp
index 6c23552e..5981cc04 100644
--- a/src/app_console/include/app_console.hpp
+++ b/src/app_console/include/app_console.hpp
@@ -12,16 +12,14 @@
#include "console.hpp"
#include "database.hpp"
#include "samd.hpp"
+#include "service_locator.hpp"
#include "track_queue.hpp"
namespace console {
class AppConsole : public Console {
public:
- static std::weak_ptr<database::Database> sDatabase;
- static audio::TrackQueue* sTrackQueue;
- static drivers::Bluetooth* sBluetooth;
- static drivers::Samd* sSamd;
+ static std::shared_ptr<system_fsm::ServiceLocator> sServices;
protected:
virtual auto RegisterExtraComponents() -> void;