• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef AUDIO_BLUETOOTH_MANAGERI_H
17 #define AUDIO_BLUETOOTH_MANAGERI_H
18 
19 #include "bluetooth_a2dp_codec.h"
20 #include "bluetooth_a2dp_a2dpCodecInfo.h"
21 #include "bluetooth_a2dp_a2dpCodecStatus.h"
22 #include "idevice_status_observer.h"
23 #include "raw_address.h"
24 
25 namespace OHOS {
26 namespace Bluetooth {
27 using namespace bluetooth;
28 
29 typedef struct BtA2dpAudioCallback {
30     void (*OnPlayingStatusChanged)(const RawAddress &device, int playingState, int error);
31     void (*OnConfigurationChanged)(const RawAddress &device, const BluetoothA2dpCodecInfo &info, int error);
32     void (*OnConnectionStateChanged)(const RawAddress &device, int state);
33 } BtA2dpAudioCallback;
34 
35 int GetPlayingState();
36 RawAddress& GetDevice();
37 void GetProxy();
38 void RegisterObserver(AudioStandard::IDeviceStatusObserver &observer);
39 }
40 }
41 #endif  // AUDIO_BLUETOOTH_MANAGERI_H
42