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 "stack/include/avdt_api.h"
32 
33 #define BTA_AR_AV_MASK 0x01
34 #define BTA_AR_AVK_MASK 0x02
35 
36 /* data associated with BTA_AR */
37 typedef struct {
38   tAVDT_CTRL_CBACK* p_av_conn_cback;  /* av connection callback function */
39   uint8_t avdt_registered;
40   uint8_t avct_registered;
41   uint32_t sdp_tg_handle;
42   uint32_t sdp_ct_handle;
43   uint16_t ct_categories[2];
44   uint8_t tg_registered;
45   tBTA_AV_HNDL hndl; /* Handle associated with the stream that rejected the
46                         connection. */
47 } tBTA_AR_CB;
48 
49 /*****************************************************************************
50  *  Global data
51  ****************************************************************************/
52 
53 /* control block declaration */
54 extern tBTA_AR_CB bta_ar_cb;
55 
56 #endif /* BTA_AR_INT_H */
57