• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 "bt_target.h"
28 #include "bta_sys.h"
29 
30 /*****************************************************************************
31  *  Constants and data types
32  ****************************************************************************/
33 
34 /* Profile supported features */
35 #define BTA_PBS_SUPF_DOWNLOAD 0x0001
36 #define BTA_PBS_SURF_BROWSE 0x0002
37 
38 /* Profile supported repositories */
39 #define BTA_PBS_REPOSIT_LOCAL 0x01 /* Local PhoneBook */
40 #define BTA_PBS_REPOSIT_SIM 0x02   /* SIM card PhoneBook */
41 
42 #define BTA_PBS_TARGET_UUID \
43   "\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 \
46   16 /* Must not be greater than OBX_MAX_AUTH_KEY_SIZE */
47 
48 #define BTA_PBS_DEFAULT_VERSION 0x0101 /* for PBAP PSE version 1.1 */
49 
50 /* Configuration structure */
51 typedef struct {
52   uint8_t realm_charset; /* Server only */
53   bool userid_req; /* true if user id is required during obex authentication
54                       (Server only) */
55   uint8_t supported_features;     /* Server supported features */
56   uint8_t supported_repositories; /* Server supported repositories */
57 
58 } tBTA_PBS_CFG;
59 
60 #endif /* BTA_PBS_INT_H */
61