Home | History | Annotate | Download | only in ar
      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 #ifndef BTA_AR_DEBUG
     31 #define BTA_AR_DEBUG TRUE
     32 #endif
     33 
     34 #define BTA_AR_AV_MASK 0x01
     35 #define BTA_AR_AVK_MASK 0x02
     36 
     37 /* data associated with BTA_AR */
     38 typedef struct {
     39   tAVDT_CTRL_CBACK* p_av_conn_cback;  /* av connection callback function */
     40   tAVDT_CTRL_CBACK* p_avk_conn_cback; /* avk 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   tBTA_AV_HNDL hndl; /* Handle associated with the stream that rejected the
     48                         connection. */
     49 } tBTA_AR_CB;
     50 
     51 /*****************************************************************************
     52  *  Global data
     53  ****************************************************************************/
     54 
     55 /* control block declaration */
     56 extern tBTA_AR_CB bta_ar_cb;
     57 
     58 #endif /* BTA_AR_INT_H */
     59