blob: ede80ba67eb4035b1580ad5b0e8edcd1cd1b3e44 [file] [log] [blame]
Hemant Gupta2dc99992014-04-18 12:54:08 +05301/******************************************************************************
2 *
Jakub Pawlowski5b790fe2017-09-18 09:00:20 -07003 * Copyright 2014 The Android Open Source Project
4 * Copyright 2003-2012 Broadcom Corporation
Hemant Gupta2dc99992014-04-18 12:54:08 +05305 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at:
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *
18 ******************************************************************************/
19
20/******************************************************************************
21 *
22 * This file contains compile-time configurable constants for MCE
23 *
24 ******************************************************************************/
25
Pavlin Radoslavov258c2532015-09-27 20:59:05 -070026#include "bt_common.h"
Chris Manton794f3b52014-10-01 09:14:06 -070027#include "bt_types.h"
Myles Watsoncd1fd072016-11-09 13:17:43 -080028#include "bta_api.h"
Hemant Gupta2dc99992014-04-18 12:54:08 +053029#include "bta_mce_api.h"
30
31#ifndef BTA_MCE_SDP_DB_SIZE
Myles Watsoncd1fd072016-11-09 13:17:43 -080032#define BTA_MCE_SDP_DB_SIZE 4500
Hemant Gupta2dc99992014-04-18 12:54:08 +053033#endif
34
Myles Watson188d7ac2017-10-03 13:04:28 -070035static tSDP_DISCOVERY_DB
36 bta_mce_sdp_db_data[BTA_MCE_SDP_DB_SIZE / sizeof(tSDP_DISCOVERY_DB)];
Hemant Gupta2dc99992014-04-18 12:54:08 +053037
38/* MCE configuration structure */
Myles Watsoncd1fd072016-11-09 13:17:43 -080039const tBTA_MCE_CFG bta_mce_cfg = {
Myles Watson188d7ac2017-10-03 13:04:28 -070040 (BTA_MCE_SDP_DB_SIZE / sizeof(tSDP_DISCOVERY_DB)) *
41 sizeof(tSDP_DISCOVERY_DB),
42 bta_mce_sdp_db_data /* The data buffer to keep SDP database */
Hemant Gupta2dc99992014-04-18 12:54:08 +053043};
44
Myles Watson188d7ac2017-10-03 13:04:28 -070045const tBTA_MCE_CFG* p_bta_mce_cfg = &bta_mce_cfg;