aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2023-10-23 21:43:05 +0200
committerJF <JF002@users.noreply.github.com>2023-11-19 21:13:55 +0100
commit02af09d9430bef72f307d49bc215149415a180ea (patch)
treeb1b7d09e95ce8d9de08f64c56206f91c26e7f5c7 /src/displayapp
parent63e0c4f4efb047f4f15601f7b08640c4b589de93 (diff)
Application selection at build time
Fix DisplayAppRecovery so it builds with -std=c++20.
Diffstat (limited to 'src/displayapp')
-rw-r--r--src/displayapp/DisplayAppRecovery.cpp9
-rw-r--r--src/displayapp/DisplayAppRecovery.h7
2 files changed, 16 insertions, 0 deletions
diff --git a/src/displayapp/DisplayAppRecovery.cpp b/src/displayapp/DisplayAppRecovery.cpp
index de165c29..9fe59c40 100644
--- a/src/displayapp/DisplayAppRecovery.cpp
+++ b/src/displayapp/DisplayAppRecovery.cpp
@@ -121,3 +121,12 @@ void DisplayApp::PushMessage(Display::Messages msg) {
void DisplayApp::Register(Pinetime::System::SystemTask* /*systemTask*/) {
}
+
+void DisplayApp::Register(Pinetime::Controllers::WeatherService* /*weatherService*/) {
+}
+
+void DisplayApp::Register(Pinetime::Controllers::MusicService* /*musicService*/) {
+}
+
+void DisplayApp::Register(Pinetime::Controllers::NavigationService* /*NavigationService*/) {
+}
diff --git a/src/displayapp/DisplayAppRecovery.h b/src/displayapp/DisplayAppRecovery.h
index 3ce95187..a42d3e2f 100644
--- a/src/displayapp/DisplayAppRecovery.h
+++ b/src/displayapp/DisplayAppRecovery.h
@@ -34,6 +34,9 @@ namespace Pinetime {
class AlarmController;
class BrightnessController;
class FS;
+ class WeatherService;
+ class MusicService;
+ class NavigationService;
}
namespace System {
@@ -66,6 +69,10 @@ namespace Pinetime {
void PushMessage(Pinetime::Applications::Display::Messages msg);
void Register(Pinetime::System::SystemTask* systemTask);
+ void Register(Pinetime::Controllers::WeatherService* weatherService);
+ void Register(Pinetime::Controllers::MusicService* musicService);
+ void Register(Pinetime::Controllers::NavigationService* NavigationService);
+
private:
TaskHandle_t taskHandle;