• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 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/*
17 * @addtogroup HdiA2dp
18 * @{
19 *
20 * @brief Provides unified APIs for the A2DP service.
21 *
22 * The Host can use the interface provided by the module to create an audio session,
23 * and exchange data with the audio subsystem.
24 *
25 * @since 4.0
26 */
27
28/*
29 * @file BluetoothAudioTypes.idl
30 *
31 * @brief Defines the data structure.
32 *
33 * @since 4.0
34 * @version 1.0
35 */
36
37package ohos.hdi.bluetooth.a2dp.v1_0;
38
39/*
40 * @brief Defines the operation.
41 *
42 * @since 4.0
43 */
44enum Operation {
45    SUSPEND_RENDER = 0,
46    START_RENDER = 1,
47};
48
49/*
50 * @brief Defines the operation result of the interface.
51 *
52 * @since 4.0
53 */
54enum Status {
55    SUCCESS = 0,
56    FAILURE = 1,
57};
58
59/*
60 * @brief Defines the type of audio session.
61 *
62 * @since 4.0
63 */
64enum SessionType {
65    UNKNOWN_TYPE,
66    SOFTWARE_ENCODING,
67    HARDWARE_ENCODING,
68};