summaryrefslogtreecommitdiff
path: root/src/Components/Ble/NimbleController.h
diff options
context:
space:
mode:
authorAdam Pigg <adam@piggz.co.uk>2020-07-11 21:37:28 +0100
committerAdam Pigg <adam@piggz.co.uk>2020-07-11 21:37:28 +0100
commit7a1e6e6e5bf187846bd533f04ee58e04798f0035 (patch)
tree8267d0cd4280abf5a4fca6ffd0a9bc06a3f75411 /src/Components/Ble/NimbleController.h
parent0bcaf9c22d6183ba8072e10abb9da7aea578b8db (diff)
Add start of music appliction
Diffstat (limited to 'src/Components/Ble/NimbleController.h')
-rw-r--r--src/Components/Ble/NimbleController.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Components/Ble/NimbleController.h b/src/Components/Ble/NimbleController.h
index cf50d78d..fab3df2b 100644
--- a/src/Components/Ble/NimbleController.h
+++ b/src/Components/Ble/NimbleController.h
@@ -7,6 +7,7 @@
#include "CurrentTimeClient.h"
#include "DfuService.h"
#include "CurrentTimeService.h"
+#include "MusicService.h"
#include <host/ble_gap.h>
namespace Pinetime {
@@ -35,6 +36,9 @@ namespace Pinetime {
uint16_t characteristicValueHandle, const ble_gatt_dsc *descriptor);
void StartDiscovery();
+
+ Pinetime::Controllers::MusicService& music() {return musicService;};
+
private:
static constexpr char* deviceName = "Pinetime-JF";
Pinetime::System::SystemTask& systemTask;
@@ -49,6 +53,7 @@ namespace Pinetime {
AlertNotificationService anService;
AlertNotificationClient alertNotificationClient;
CurrentTimeService currentTimeService;
+ MusicService musicService;
uint8_t addrType; // 1 = Random, 0 = PUBLIC
uint16_t connectionHandle;