1ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta/****************************************************************************** 2ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta * 3ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta * Copyright (C) 2009-2013 Broadcom Corporation 4ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta * 5ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta * Licensed under the Apache License, Version 2.0 (the "License"); 6ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta * you may not use this file except in compliance with the License. 7ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta * You may obtain a copy of the License at: 8ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta * 9ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta * http://www.apache.org/licenses/LICENSE-2.0 10ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta * 11ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta * Unless required by applicable law or agreed to in writing, software 12ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta * distributed under the License is distributed on an "AS IS" BASIS, 13ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta * See the License for the specific language governing permissions and 15ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta * limitations under the License. 16ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta * 17ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta ******************************************************************************/ 18ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta 19ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta#ifndef BTIF_GATT_UTIL_H 20ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta#define BTIF_GATT_UTIL_H 21ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta 2249a86709488e5cfd5e23759da18bf9613e15b04dMarie Janssen#include <hardware/bluetooth.h> 2349a86709488e5cfd5e23759da18bf9613e15b04dMarie Janssen#include <hardware/bt_gatt.h> 2449a86709488e5cfd5e23759da18bf9613e15b04dMarie Janssen 2549a86709488e5cfd5e23759da18bf9613e15b04dMarie Janssen#include "bta/include/bta_gatt_api.h" 26306bddadeec993013cfed6bf0e41a1a47a69367cAndre Eisenbach 276bd442f543972b072ef2cbbcf2f7c91202de1045Myles Watsonvoid btif_to_bta_uuid(tBT_UUID* p_dest, const bt_uuid_t* p_src); 286bd442f543972b072ef2cbbcf2f7c91202de1045Myles Watsonvoid btif_to_bta_response(tBTA_GATTS_RSP* p_dest, btgatt_response_t* p_src); 29e39606565035a103562d0485a90b18962592ae97Jakub Pawlowskivoid btif_to_bta_uuid_mask(tBTM_BLE_PF_COND_MASK* p_mask, 306bd442f543972b072ef2cbbcf2f7c91202de1045Myles Watson const bt_uuid_t* p_src, const bt_uuid_t* svc_uuid); 31ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta 326bd442f543972b072ef2cbbcf2f7c91202de1045Myles Watsonvoid bta_to_btif_uuid(bt_uuid_t* p_dest, tBT_UUID* p_src); 33ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta 346bd442f543972b072ef2cbbcf2f7c91202de1045Myles Watsonuint16_t set_read_value(btgatt_read_params_t* p_dest, tBTA_GATTC_READ* p_src); 356bd442f543972b072ef2cbbcf2f7c91202de1045Myles Watsonuint16_t get_uuid16(tBT_UUID* p_uuid); 36ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta 376bd442f543972b072ef2cbbcf2f7c91202de1045Myles Watsonvoid btif_gatt_check_encrypted_link(BD_ADDR bd_addr, 386bd442f543972b072ef2cbbcf2f7c91202de1045Myles Watson tBTA_GATT_TRANSPORT transport); 396bd442f543972b072ef2cbbcf2f7c91202de1045Myles Watsonextern void btif_gatt_move_track_adv_data(btgatt_track_adv_info_t* p_dest, 406bd442f543972b072ef2cbbcf2f7c91202de1045Myles Watson btgatt_track_adv_info_t* p_src); 41ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta 42ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta#endif 43