• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /******************************************************************************
2  *
3  *  Copyright (C) 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 
31 #ifndef BTA_AR_DEBUG
32 #define BTA_AR_DEBUG    FALSE
33 #endif
34 
35 #define BTA_AR_AV_MASK      0x01
36 #define BTA_AR_AVK_MASK     0x02
37 
38 /* data associated with BTA_AR */
39 typedef struct
40 {
41     tAVDT_CTRL_CBACK *p_av_conn_cback;       /* av connection callback function */
42     tAVDT_CTRL_CBACK *p_avk_conn_cback;      /* avk connection callback function */
43     UINT8           avdt_registered;
44     UINT8           avct_registered;
45 	UINT32          sdp_tg_handle;
46 	UINT32          sdp_ct_handle;
47     UINT16          ct_categories[2];
48     UINT8           tg_registered;
49     tBTA_AV_HNDL    hndl;       /* Handle associated with the stream that rejected the connection. */
50 } tBTA_AR_CB;
51 
52 /*****************************************************************************
53 **  Global data
54 *****************************************************************************/
55 
56 /* control block declaration */
57 #if BTA_DYNAMIC_MEMORY == FALSE
58 extern tBTA_AR_CB bta_ar_cb;
59 #else
60 extern tBTA_AR_CB *bta_ar_cb_ptr;
61 #define bta_ar_cb (*bta_ar_cb_ptr)
62 #endif
63 
64 #endif /* BTA_AR_INT_H */
65