diff options
Diffstat (limited to 'stack/include/wbt_api.h')
-rw-r--r-- | stack/include/wbt_api.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/stack/include/wbt_api.h b/stack/include/wbt_api.h new file mode 100644 index 0000000..8bfb772 --- /dev/null +++ b/stack/include/wbt_api.h @@ -0,0 +1,71 @@ +/****************************************************************************** + * + * Copyright (C) 2003-2012 Broadcom Corporation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ******************************************************************************/ + +/****************************************************************************** + * + * This file contains definitions and constants used by the Broadcom + * Bluetooth Extensions API software. + * + ******************************************************************************/ +#ifndef WBT_API_H +#define WBT_API_H + +#include "bt_target.h" + +/***************************************************************************** +** Constants and Types +*****************************************************************************/ + +/************************** +* SDP Attribute IDs * +***************************/ +#define ATTR_ID_EXT_BRCM_VERSION 0x8001 /* UINT16 (0xmmnn - major, minor [0x0001]) mandatory */ +#define ATTR_ID_EXT_PIN_CODE 0x8002 /* UINT32 4 - digit pin */ + +/************************** +* SDP Attribute ID Values * +***************************/ +/* Version Attribute Value */ +#define BRCM_EXT_VERSION 0x0001 /* UINT16 (0xmmnn - major, minor [0x0001]) mandatory */ + +/* Pin Code Attribute Value */ +#define BRCM_EXT_PIN_CODE 0x00000000 /* UINT32 ('0000') */ + +/***************************************************************************** +** External Function Declarations +*****************************************************************************/ +#ifdef __cplusplus +extern "C" +{ +#endif + +BT_API extern BOOLEAN WBT_ExtCreateRecord(void); + +/*** Features ***/ +BT_API extern BOOLEAN WBT_ExtAddPinCode(void); + + +BT_API extern UINT32 wbt_sdp_show_ext(UINT8 scn, char *service_name, + UINT8 pin_code_ext, + UINT8 active_sync_ext); + +#ifdef __cplusplus +} +#endif + +#endif /* WBT_API_H */ |