btif_gatt_util.h revision 306bddadeec993013cfed6bf0e41a1a47a69367c
134064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu/****************************************************************************** 234064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu * 334064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu * Copyright (C) 2009-2013 Broadcom Corporation 434064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu * 534064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu * Licensed under the Apache License, Version 2.0 (the "License"); 634064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu * you may not use this file except in compliance with the License. 734064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu * You may obtain a copy of the License at: 834064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu * 934064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu * http://www.apache.org/licenses/LICENSE-2.0 1034064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu * 1134064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu * Unless required by applicable law or agreed to in writing, software 1234064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu * distributed under the License is distributed on an "AS IS" BASIS, 1334064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1434064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu * See the License for the specific language governing permissions and 1534064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu * limitations under the License. 1634064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu * 1734064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu ******************************************************************************/ 1834064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu 1934064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu 2034064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu#ifndef BTIF_GATT_UTIL_H 2134064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu#define BTIF_GATT_UTIL_H 2234064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu 2334064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu#include "bta_api.h" 241904ba7936eb5a3fa76875a498eb54f3bd5f90a5Kristian Høgsberg 2534064756a5e2c8952c9de26eaebafddabd562540Chia-I Wuvoid btif_to_bta_uuid(tBT_UUID *p_dest, bt_uuid_t *p_src); 2634064756a5e2c8952c9de26eaebafddabd562540Chia-I Wuvoid btif_to_bta_gatt_id(tBTA_GATT_ID *p_dest, btgatt_gatt_id_t *p_src); 27db61b9ce39bccc43140357652ceb78baaf2aea44Vinson Leevoid btif_to_bta_srvc_id(tBTA_GATT_SRVC_ID *p_dest, btgatt_srvc_id_t *p_src); 280117da40cd7edd3d165bb28569c289b37eca12b9Vinson Leevoid btif_to_bta_response(tBTA_GATTS_RSP *p_dest, btgatt_response_t* p_src); 2934064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu 3034064756a5e2c8952c9de26eaebafddabd562540Chia-I Wuvoid bta_to_btif_uuid(bt_uuid_t *p_dest, tBT_UUID *p_src); 3134064756a5e2c8952c9de26eaebafddabd562540Chia-I Wuvoid bta_to_btif_srvc_id(btgatt_srvc_id_t *p_dest, tBTA_GATT_SRVC_ID *p_src); 3234064756a5e2c8952c9de26eaebafddabd562540Chia-I Wuvoid bta_to_btif_gatt_id(btgatt_gatt_id_t *p_dest, tBTA_GATT_ID *p_src); 3334064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu 3434064756a5e2c8952c9de26eaebafddabd562540Chia-I Wuuint16_t set_read_value(btgatt_read_params_t *p_dest, tBTA_GATTC_READ *p_src); 35f9995b30756140724f41daf963fa06167912be7fKristian Høgsberguint16_t get_uuid16(tBT_UUID *p_uuid); 3634064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu 3734064756a5e2c8952c9de26eaebafddabd562540Chia-I Wuvoid btif_gatt_check_encrypted_link(BD_ADDR bd_addr); 3834064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu 3934064756a5e2c8952c9de26eaebafddabd562540Chia-I WuBOOLEAN btif_get_device_type(BD_ADDR bd_addr, int *addr_type, int *device_type); 4034064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu 4134064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu#endif 4234064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu 4334064756a5e2c8952c9de26eaebafddabd562540Chia-I Wu