• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /******************************************************************************
2  *
3  *  Copyright (C) 2009-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 #ifndef BTIF_DM_H
20 #define BTIF_DM_H
21 
22 /*******************************************************************************
23 **  Functions
24 ********************************************************************************/
25 
26 /**
27  * BTIF callback to switch context from bte to btif
28  */
29 void bte_dm_evt(tBTA_DM_SEC_EVT event, tBTA_DM_SEC *p_data);
30 
31 /**
32  * Notify BT disable being initiated. DM may chose to abort
33  * pending commands, like pairing
34  */
35 void btif_dm_on_disable(void);
36 
37 /**
38  * Out-of-band functions
39  */
40 #if (BTM_OOB_INCLUDED == TRUE)
41 void btif_dm_set_oob_for_io_req(tBTA_OOB_DATA  *p_oob_data);
42 #ifdef BTIF_DM_OOB_TEST
43 void btif_dm_load_local_oob(void);
44 void btif_dm_proc_loc_oob(BOOLEAN valid, BT_OCTET16 c, BT_OCTET16 r);
45 BOOLEAN btif_dm_proc_rmt_oob(BD_ADDR bd_addr,  BT_OCTET16 p_c, BT_OCTET16 p_r);
46 #endif /* BTIF_DM_OOB_TEST */
47 #endif /* BTM_OOB_INCLUDED */
48 
49 #endif
50