Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04fc4676 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Linux build and linking fix

Test: run bluetoothtbd on Linux
Change-Id: Id9d913f8766b71c77696df25f74a8e33ba57523e
parent f35943c8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -27,8 +27,8 @@ class HearingAidAudioReceiver {
 public:
  virtual ~HearingAidAudioReceiver() = default;
  virtual void OnAudioDataReady(const std::vector<uint8_t>& data) = 0;
  virtual void OnAudioSuspend();
  virtual void OnAudioResume();
  virtual void OnAudioSuspend() = 0;
  virtual void OnAudioResume() = 0;
};

class HearingAid {
+3 −0
Original line number Diff line number Diff line
@@ -17,7 +17,9 @@
static_library("btif") {
  sources = [
    "//audio_a2dp_hw/src/audio_a2dp_hw_utils.cc",
    "//audio_hearing_aid_hw/src/audio_hearing_aid_hw_utils.cc",
    "src/btif_a2dp.cc",
    "src/btif_a2dp_audio_interface_linux.cc",
    "src/btif_a2dp_control.cc",
    "src/btif_a2dp_sink.cc",
    "src/btif_a2dp_source.cc",
@@ -79,6 +81,7 @@ static_library("btif") {
    "include",
    "//",
    "//audio_a2dp_hw/include",
    "//audio_hearing_aid_hw/include",
    "//bta/include",
    "//bta/sys",
    "//btcore/include",
+37 −0
Original line number Diff line number Diff line
/******************************************************************************
 *
 *  Copyright (C) 2018 Android Open Source Project
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at:
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *
 ******************************************************************************/

#include "btif_a2dp_audio_interface.h"

#include <base/logging.h>

void btif_a2dp_audio_on_started(tBTA_AV_STATUS status) {
  LOG(FATAL) << "Unimplemented yet";
}
void btif_a2dp_audio_on_stopped(tBTA_AV_STATUS status) {
  LOG(FATAL) << "Unimplemented yet";
}
void btif_a2dp_audio_on_suspended(tBTA_AV_STATUS status) {
  LOG(FATAL) << "Unimplemented yet";
}
void btif_a2dp_audio_interface_start_session(void) {
  LOG(FATAL) << "Unimplemented yet";
}
void btif_a2dp_audio_interface_end_session(void) {
  LOG(FATAL) << "Unimplemented yet";
}
+4 −3
Original line number Diff line number Diff line
@@ -72,10 +72,11 @@ struct ListItem {

class MediaCallbacks {
 public:
  virtual void SendMediaUpdate(bool track_changed, bool play_state, bool queue);
  virtual void SendMediaUpdate(bool track_changed, bool play_state,
                               bool queue) = 0;
  virtual void SendFolderUpdate(bool available_players, bool addressed_players,
                                bool uids_changed);
  virtual void SendActiveDeviceChanged(const RawAddress& address);
                                bool uids_changed) = 0;
  virtual void SendActiveDeviceChanged(const RawAddress& address) = 0;
  virtual ~MediaCallbacks() = default;
};

+1 −0
Original line number Diff line number Diff line
@@ -70,6 +70,7 @@ shared_library("bluetooth") {
    "//btcore",
    "//btif",
    "//device",
    "//embdrv/g722",
    "//embdrv/sbc",
    "//hci",
    "//osi",
Loading