1 /******************************************************************************
2  *
3  *  Copyright 2016 The Android Open Source Project
4  *  Copyright 2009-2012 Broadcom Corporation
5  *
6  *  Licensed under the Apache License, Version 2.0 (the "License");
7  *  you may not use this file except in compliance with the License.
8  *  You may obtain a copy of the License at:
9  *
10  *  http://www.apache.org/licenses/LICENSE-2.0
11  *
12  *  Unless required by applicable law or agreed to in writing, software
13  *  distributed under the License is distributed on an "AS IS" BASIS,
14  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  *  See the License for the specific language governing permissions and
16  *  limitations under the License.
17  *
18  ******************************************************************************/
19 
20 #ifndef BTIF_HD_H
21 #define BTIF_HD_H
22 
23 #include <hardware/bluetooth.h>
24 #include <hardware/bt_hd.h>
25 #include <stdint.h>
26 #include "bta/include/bta_hd_api.h"
27 
28 typedef enum {
29   BTIF_HD_DISABLED = 0,
30   BTIF_HD_ENABLED,
31   BTIF_HD_DISABLING
32 } BTIF_HD_STATUS;
33 
34 /* BTIF-HD control block */
35 typedef struct {
36   BTIF_HD_STATUS status;
37   bool app_registered;
38   bool service_dereg_active;
39   bool forced_disc;
40 } btif_hd_cb_t;
41 
42 extern btif_hd_cb_t btif_hd_cb;
43 
44 extern void btif_hd_remove_device(RawAddress bd_addr);
45 extern void btif_hd_service_registration();
46 
47 #endif
48