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