1 /******************************************************************************
2  *
3  *  Copyright 2008-2012 Broadcom Corporation
4  *
5  *  Licensed under the Apache License, Version 2.0 (the "License");
6  *  you may not use this file except in compliance with the License.
7  *  You may obtain a copy of the License at:
8  *
9  *  http://www.apache.org/licenses/LICENSE-2.0
10  *
11  *  Unless required by applicable law or agreed to in writing, software
12  *  distributed under the License is distributed on an "AS IS" BASIS,
13  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  *  See the License for the specific language governing permissions and
15  *  limitations under the License.
16  *
17  ******************************************************************************/
18 
19 /******************************************************************************
20  *
21  *  This is the private interface file for the BTA audio/video registration
22  *  module.
23  *
24  ******************************************************************************/
25 #ifndef BTA_AR_INT_H
26 #define BTA_AR_INT_H
27 
28 #include <cstdint>
29 
30 #include "bta/include/bta_av_api.h"
31 #include "profile/avrcp/avrcp_sdp_records.h"
32 #include "stack/include/avdt_api.h"
33 
34 #define BTA_AR_AV_MASK 0x01
35 #define BTA_AR_AVK_MASK 0x02
36 using namespace bluetooth::avrcp;
37 
38 /* data associated with BTA_AR */
39 typedef struct {
40   tAVDT_CTRL_CBACK* p_av_conn_cback; /* av connection callback function */
41   uint8_t avdt_registered;
42   uint8_t avct_registered;
43   uint32_t sdp_tg_handle;
44   uint32_t sdp_ct_handle;
45   uint16_t ct_categories[2];
46   uint8_t tg_registered;
47   uint16_t sdp_tg_request_id = UNASSIGNED_REQUEST_ID;
48   uint16_t sdp_ct_request_id = UNASSIGNED_REQUEST_ID;
49   tBTA_AV_HNDL hndl; /* Handle associated with the stream that rejected the
50                         connection. */
51   uint16_t ct_ver;
52   uint16_t tg_categories[2];
53 } tBTA_AR_CB;
54 
55 /*****************************************************************************
56  *  Global data
57  ****************************************************************************/
58 
59 /* control block declaration */
60 extern tBTA_AR_CB bta_ar_cb;
61 
62 #endif /* BTA_AR_INT_H */
63