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