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 \
44   "\x79\x61\x35\xf0\xf0\xc5\x11\xd8\x09\x66\x08\x00\x20\x0c\x9a\x66"
45 #define BTA_PBS_UUID_LENGTH 16
46 #define BTA_PBS_MAX_AUTH_KEY_SIZE \
47   16 /* Must not be greater than OBX_MAX_AUTH_KEY_SIZE */
48 
49 #define BTA_PBS_DEFAULT_VERSION 0x0101 /* for PBAP PSE version 1.1 */
50 
51 /* Configuration structure */
52 typedef struct {
53   uint8_t realm_charset; /* Server only */
54   bool userid_req; /* true if user id is required during obex authentication
55                       (Server only) */
56   uint8_t supported_features;     /* Server supported features */
57   uint8_t supported_repositories; /* Server supported repositories */
58 
59 } tBTA_PBS_CFG;
60 
61 #endif /* BTA_PBS_INT_H */
62