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
25void btif_to_bta_uuid(tBT_UUID *p_dest, bt_uuid_t *p_src);
26void btif_to_bta_gatt_id(tBTA_GATT_ID *p_dest, btgatt_gatt_id_t *p_src);
27void btif_to_bta_srvc_id(tBTA_GATT_SRVC_ID *p_dest, btgatt_srvc_id_t *p_src);
28void btif_to_bta_response(tBTA_GATTS_RSP *p_dest, btgatt_response_t* p_src);
29void btif_to_bta_uuid_mask(tBTA_DM_BLE_PF_COND_MASK *p_mask, bt_uuid_t *p_src);
30
31void bta_to_btif_uuid(bt_uuid_t *p_dest, tBT_UUID *p_src);
32void bta_to_btif_srvc_id(btgatt_srvc_id_t *p_dest, tBTA_GATT_SRVC_ID *p_src);
33void bta_to_btif_gatt_id(btgatt_gatt_id_t *p_dest, tBTA_GATT_ID *p_src);
34
35uint16_t set_read_value(btgatt_read_params_t *p_dest, tBTA_GATTC_READ *p_src);
36uint16_t get_uuid16(tBT_UUID *p_uuid);
37
38void btif_gatt_check_encrypted_link(BD_ADDR bd_addr, tBTA_GATT_TRANSPORT transport);
39extern 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
44