1 /****************************************************************************** 2 * 3 * Copyright (C) 2009-2013 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_GATT_UTIL_H 20 #define BTIF_GATT_UTIL_H 21 22 #include <hardware/bluetooth.h> 23 #include <hardware/bt_gatt.h> 24 25 #include "bta/include/bta_gatt_api.h" 26 27 void btif_to_bta_uuid(tBT_UUID* p_dest, const bt_uuid_t* p_src); 28 void btif_to_bta_response(tBTA_GATTS_RSP* p_dest, btgatt_response_t* p_src); 29 void btif_to_bta_uuid_mask(tBTM_BLE_PF_COND_MASK* p_mask, 30 const bt_uuid_t* p_src, const bt_uuid_t* svc_uuid); 31 32 void bta_to_btif_uuid(bt_uuid_t* p_dest, tBT_UUID* p_src); 33 34 uint16_t set_read_value(btgatt_read_params_t* p_dest, tBTA_GATTC_READ* p_src); 35 uint16_t get_uuid16(tBT_UUID* p_uuid); 36 37 void btif_gatt_check_encrypted_link(BD_ADDR bd_addr, 38 tBTA_GATT_TRANSPORT transport); 39 extern void btif_gatt_move_track_adv_data(btgatt_track_adv_info_t* p_dest, 40 btgatt_track_adv_info_t* p_src); 41 42 #endif 43