diff options
| author | Jonathan Vander Mey <jonathan@vandermey.ca> | 2021-06-12 22:59:14 (GMT) |
|---|---|---|
| committer | JF002 <JF002@users.noreply.github.com> | 2021-07-02 15:47:14 (GMT) |
| commit | d13b0a7ec54e9149b353563bef70f4ecee92cc3f (patch) | |
| tree | 1eb94ef233292658581a06b13758f290ed287ff3 /src/components/ble/MusicService.cpp | |
| parent | 4217a8cb650048252b6d294c9358a0c8de3b16f0 (diff) | |
Move local-only function into anonymous namespace
Diffstat (limited to 'src/components/ble/MusicService.cpp')
| -rw-r--r-- | src/components/ble/MusicService.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/components/ble/MusicService.cpp b/src/components/ble/MusicService.cpp index 5dfea50..4d7e950 100644 --- a/src/components/ble/MusicService.cpp +++ b/src/components/ble/MusicService.cpp @@ -47,10 +47,9 @@ namespace { constexpr ble_uuid128_t msRepeatCharUuid {CharUuid(0x0b, 0x00)}; constexpr ble_uuid128_t msShuffleCharUuid {CharUuid(0x0c, 0x00)}; -} - -int MusicCallback(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt* ctxt, void* arg) { - return static_cast<Pinetime::Controllers::MusicService*>(arg)->OnCommand(conn_handle, attr_handle, ctxt); + int MusicCallback(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt* ctxt, void* arg) { + return static_cast<Pinetime::Controllers::MusicService*>(arg)->OnCommand(conn_handle, attr_handle, ctxt); + } } Pinetime::Controllers::MusicService::MusicService(Pinetime::System::SystemTask& system) : m_system(system) { |
