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 20 #ifndef BTIF_GATT_UTIL_H 21 #define BTIF_GATT_UTIL_H 22 23 #include "bta_api.h" 24 25 void btif_to_bta_uuid(tBT_UUID *p_dest, bt_uuid_t *p_src); 26 void btif_to_bta_gatt_id(tBTA_GATT_ID *p_dest, btgatt_gatt_id_t *p_src); 27 void btif_to_bta_srvc_id(tBTA_GATT_SRVC_ID *p_dest, btgatt_srvc_id_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(tBTA_DM_BLE_PF_COND_MASK *p_mask, bt_uuid_t *p_src); 30 31 void bta_to_btif_uuid(bt_uuid_t *p_dest, tBT_UUID *p_src); 32 void bta_to_btif_srvc_id(btgatt_srvc_id_t *p_dest, tBTA_GATT_SRVC_ID *p_src); 33 void bta_to_btif_gatt_id(btgatt_gatt_id_t *p_dest, tBTA_GATT_ID *p_src); 34 35 uint16_t set_read_value(btgatt_read_params_t *p_dest, tBTA_GATTC_READ *p_src); 36 uint16_t get_uuid16(tBT_UUID *p_uuid); 37 38 void btif_gatt_check_encrypted_link(BD_ADDR bd_addr); 39 40 #endif 41 42