1/****************************************************************************** 2 * 3 * Copyright (C) 2003-2012 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 * 21 * This file contains definitions and constants used by the Broadcom 22 * Bluetooth Extensions API software. 23 * 24 ******************************************************************************/ 25#ifndef WBT_API_H 26#define WBT_API_H 27 28#include "bt_target.h" 29 30/***************************************************************************** 31** Constants and Types 32*****************************************************************************/ 33 34/************************** 35* SDP Attribute IDs * 36***************************/ 37#define ATTR_ID_EXT_BRCM_VERSION 0x8001 /* UINT16 (0xmmnn - major, minor [0x0001]) mandatory */ 38#define ATTR_ID_EXT_PIN_CODE 0x8002 /* UINT32 4 - digit pin */ 39 40/************************** 41* SDP Attribute ID Values * 42***************************/ 43/* Version Attribute Value */ 44#define BRCM_EXT_VERSION 0x0001 /* UINT16 (0xmmnn - major, minor [0x0001]) mandatory */ 45 46/* Pin Code Attribute Value */ 47#define BRCM_EXT_PIN_CODE 0x00000000 /* UINT32 ('0000') */ 48 49/***************************************************************************** 50** External Function Declarations 51*****************************************************************************/ 52#ifdef __cplusplus 53extern "C" 54{ 55#endif 56 57BT_API extern BOOLEAN WBT_ExtCreateRecord(void); 58 59/*** Features ***/ 60BT_API extern BOOLEAN WBT_ExtAddPinCode(void); 61 62 63BT_API extern UINT32 wbt_sdp_show_ext(UINT8 scn, char *service_name, 64 UINT8 pin_code_ext, 65 UINT8 active_sync_ext); 66 67#ifdef __cplusplus 68} 69#endif 70 71#endif /* WBT_API_H */ 72