1 /******************************************************************************
2  *
3  *  Copyright 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 is the private file for the phone book access server (PBS).
22  *
23  ******************************************************************************/
24 #ifndef BTA_PBS_INT_H
25 #define BTA_PBS_INT_H
26 
27 #include <cstdint>
28 
29 #include "internal_include/bt_target.h"
30 
31 /*****************************************************************************
32  *  Constants and data types
33  ****************************************************************************/
34 
35 /* Profile supported features */
36 #define BTA_PBS_SUPF_DOWNLOAD 0x0001
37 #define BTA_PBS_SURF_BROWSE 0x0002
38 
39 /* Profile supported repositories */
40 #define BTA_PBS_REPOSIT_LOCAL 0x01 /* Local PhoneBook */
41 #define BTA_PBS_REPOSIT_SIM 0x02   /* SIM card PhoneBook */
42 
43 #define BTA_PBS_TARGET_UUID "\x79\x61\x35\xf0\xf0\xc5\x11\xd8\x09\x66\x08\x00\x20\x0c\x9a\x66"
44 #define BTA_PBS_UUID_LENGTH 16
45 #define BTA_PBS_MAX_AUTH_KEY_SIZE 16 /* Must not be greater than OBX_MAX_AUTH_KEY_SIZE */
46 
47 #define BTA_PBS_DEFAULT_VERSION 0x0101 /* for PBAP PSE version 1.1 */
48 
49 /* Configuration structure */
50 typedef struct {
51   uint8_t realm_charset;          /* Server only */
52   bool userid_req;                /* true if user id is required during obex authentication
53                                      (Server only) */
54   uint8_t supported_features;     /* Server supported features */
55   uint8_t supported_repositories; /* Server supported repositories */
56 } tBTA_PBS_CFG;
57 
58 #endif /* BTA_PBS_INT_H */
59