Hemant Gupta | 2dc9999 | 2014-04-18 12:54:08 +0530 | [diff] [blame] | 1 | /****************************************************************************** |
| 2 | * |
Jakub Pawlowski | 5b790fe | 2017-09-18 09:00:20 -0700 | [diff] [blame] | 3 | * Copyright 2014 The Android Open Source Project |
| 4 | * Copyright 2003-2012 Broadcom Corporation |
Hemant Gupta | 2dc9999 | 2014-04-18 12:54:08 +0530 | [diff] [blame] | 5 | * |
| 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 Radoslavov | 258c253 | 2015-09-27 20:59:05 -0700 | [diff] [blame] | 26 | #include "bt_common.h" |
Chris Manton | 794f3b5 | 2014-10-01 09:14:06 -0700 | [diff] [blame] | 27 | #include "bt_types.h" |
Myles Watson | cd1fd07 | 2016-11-09 13:17:43 -0800 | [diff] [blame] | 28 | #include "bta_api.h" |
Hemant Gupta | 2dc9999 | 2014-04-18 12:54:08 +0530 | [diff] [blame] | 29 | #include "bta_mce_api.h" |
| 30 | |
| 31 | #ifndef BTA_MCE_SDP_DB_SIZE |
Myles Watson | cd1fd07 | 2016-11-09 13:17:43 -0800 | [diff] [blame] | 32 | #define BTA_MCE_SDP_DB_SIZE 4500 |
Hemant Gupta | 2dc9999 | 2014-04-18 12:54:08 +0530 | [diff] [blame] | 33 | #endif |
| 34 | |
Myles Watson | 188d7ac | 2017-10-03 13:04:28 -0700 | [diff] [blame] | 35 | static tSDP_DISCOVERY_DB |
| 36 | bta_mce_sdp_db_data[BTA_MCE_SDP_DB_SIZE / sizeof(tSDP_DISCOVERY_DB)]; |
Hemant Gupta | 2dc9999 | 2014-04-18 12:54:08 +0530 | [diff] [blame] | 37 | |
| 38 | /* MCE configuration structure */ |
Myles Watson | cd1fd07 | 2016-11-09 13:17:43 -0800 | [diff] [blame] | 39 | const tBTA_MCE_CFG bta_mce_cfg = { |
Myles Watson | 188d7ac | 2017-10-03 13:04:28 -0700 | [diff] [blame] | 40 | (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 Gupta | 2dc9999 | 2014-04-18 12:54:08 +0530 | [diff] [blame] | 43 | }; |
| 44 | |
Myles Watson | 188d7ac | 2017-10-03 13:04:28 -0700 | [diff] [blame] | 45 | const tBTA_MCE_CFG* p_bta_mce_cfg = &bta_mce_cfg; |