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 27 #include "bta/include/bta_hd_api.h" 28 #include "types/raw_address.h" 29 30 typedef enum { 31 BTIF_HD_DISABLED = 0, 32 BTIF_HD_ENABLED, 33 BTIF_HD_DISABLING 34 } BTIF_HD_STATUS; 35 36 /* BTIF-HD control block */ 37 typedef struct { 38 BTIF_HD_STATUS status; 39 bool app_registered; 40 bool service_dereg_active; 41 bool forced_disc; 42 } btif_hd_cb_t; 43 44 extern btif_hd_cb_t btif_hd_cb; 45 46 extern void btif_hd_remove_device(RawAddress bd_addr); 47 extern void btif_hd_service_registration(); 48 49 #endif 50