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
20ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta#ifndef BTIF_GATT_UTIL_H
21ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta#define BTIF_GATT_UTIL_H
22ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta
23306bddadeec993013cfed6bf0e41a1a47a69367cAndre Eisenbach#include "bta_api.h"
24306bddadeec993013cfed6bf0e41a1a47a69367cAndre Eisenbach
25ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Battavoid btif_to_bta_uuid(tBT_UUID *p_dest, bt_uuid_t *p_src);
265f9c140d094ebf4a269cdc6ae083900bf25f7faeAndre Eisenbachvoid btif_to_bta_gatt_id(tBTA_GATT_ID *p_dest, btgatt_gatt_id_t *p_src);
27ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Battavoid btif_to_bta_srvc_id(tBTA_GATT_SRVC_ID *p_dest, btgatt_srvc_id_t *p_src);
28ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Battavoid btif_to_bta_response(tBTA_GATTS_RSP *p_dest, btgatt_response_t* p_src);
29ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta
30ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Battavoid bta_to_btif_uuid(bt_uuid_t *p_dest, tBT_UUID *p_src);
31ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Battavoid bta_to_btif_srvc_id(btgatt_srvc_id_t *p_dest, tBTA_GATT_SRVC_ID *p_src);
325f9c140d094ebf4a269cdc6ae083900bf25f7faeAndre Eisenbachvoid bta_to_btif_gatt_id(btgatt_gatt_id_t *p_dest, tBTA_GATT_ID *p_src);
33ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta
34ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Battauint16_t set_read_value(btgatt_read_params_t *p_dest, tBTA_GATTC_READ *p_src);
358444d1e649864c28b0c124bc2d16f7c153f01f14Andre Eisenbachuint16_t get_uuid16(tBT_UUID *p_uuid);
36ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta
37ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Battavoid btif_gatt_check_encrypted_link(BD_ADDR bd_addr);
38ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta
39306bddadeec993013cfed6bf0e41a1a47a69367cAndre EisenbachBOOLEAN btif_get_device_type(BD_ADDR bd_addr, int *addr_type, int *device_type);
40306bddadeec993013cfed6bf0e41a1a47a69367cAndre Eisenbach
41ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta#endif
42ead3cde4bac0c3e32cd31f149093f004eef8ceebGanesh Ganapathi Batta
43