diff options
Diffstat (limited to 'bta/pb')
-rw-r--r-- | bta/pb/bta_pbs_cfg.c | 51 | ||||
-rw-r--r-- | bta/pb/bta_pbs_int.h | 57 |
2 files changed, 108 insertions, 0 deletions
diff --git a/bta/pb/bta_pbs_cfg.c b/bta/pb/bta_pbs_cfg.c new file mode 100644 index 0000000..b2782fb --- /dev/null +++ b/bta/pb/bta_pbs_cfg.c @@ -0,0 +1,51 @@ +/****************************************************************************** + * + * 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 compile-time configurable constants for the BTA Phone + * Book Access Server. + * + ******************************************************************************/ + +#include "bt_target.h" + +#if defined(BTA_PBS_INCLUDED) && (BTA_PBS_INCLUDED == TRUE) + +#include "bta_pbs_int.h" + +/* Realm Character Set */ +#ifndef BTA_PBS_REALM_CHARSET +#define BTA_PBS_REALM_CHARSET 0 /* ASCII */ +#endif + +/* Specifies whether or not client's user id is required during obex authentication */ +#ifndef BTA_PBS_USERID_REQ +#define BTA_PBS_USERID_REQ FALSE +#endif + +const tBTA_PBS_CFG bta_pbs_cfg = +{ + BTA_PBS_REALM_CHARSET, /* Server only */ + BTA_PBS_USERID_REQ, /* Server only */ + (BTA_PBS_SUPF_DOWNLOAD | BTA_PBS_SURF_BROWSE), + BTA_PBS_REPOSIT_LOCAL, +}; + +tBTA_PBS_CFG *p_bta_pbs_cfg = (tBTA_PBS_CFG *)&bta_pbs_cfg; +#endif /* BTA_PBS_INCLUDED */ diff --git a/bta/pb/bta_pbs_int.h b/bta/pb/bta_pbs_int.h new file mode 100644 index 0000000..a4fce2b --- /dev/null +++ b/bta/pb/bta_pbs_int.h @@ -0,0 +1,57 @@ +/****************************************************************************** + * + * 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 is the private file for the phone book access server (PBS). + * + ******************************************************************************/ +#ifndef BTA_PBS_INT_H +#define BTA_PBS_INT_H + +#include "bt_target.h" +#include "bta_pbs_api.h" + +/***************************************************************************** +** Constants and data types +*****************************************************************************/ + +#define BTA_PBS_TARGET_UUID "\x79\x61\x35\xf0\xf0\xc5\x11\xd8\x09\x66\x08\x00\x20\x0c\x9a\x66" +#define BTA_PBS_UUID_LENGTH 16 +#define BTA_PBS_MAX_AUTH_KEY_SIZE 16 /* Must not be greater than OBX_MAX_AUTH_KEY_SIZE */ + +#define BTA_PBS_DEFAULT_VERSION 0x0101 /* for PBAP PSE version 1.1 */ + + +/* Configuration structure */ +typedef struct +{ + UINT8 realm_charset; /* Server only */ + BOOLEAN userid_req; /* TRUE if user id is required during obex authentication (Server only) */ + UINT8 supported_features; /* Server supported features */ + UINT8 supported_repositories; /* Server supported repositories */ + +} tBTA_PBS_CFG; + + +/***************************************************************************** +** Global data +*****************************************************************************/ + + +#endif /* BTA_PBS_INT_H */ |