summaryrefslogtreecommitdiffstats
path: root/stack/include/wbt_api.h
blob: 8bfb77265552a9fcdd3103d5a1f2d0266e904ec3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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 */