1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
46
47
49
50
51
52
63
64
65
66
67
/* ... */
/* ... */
#include "osi/allocator.h"
#include "bta/bta_api.h"
#include "bta/bta_jv_api.h"
#include "common/bt_target.h"
#if (defined BTA_JV_INCLUDED && BTA_JV_INCLUDED == TRUE)
#ifndef BTA_JV_SDP_DB_SIZE
#define BTA_JV_SDP_DB_SIZE 4500
#endif
#ifndef BTA_JV_SDP_RAW_DATA_SIZE
#define BTA_JV_SDP_RAW_DATA_SIZE 1800
#endif
/* ... */
#if BTA_DYNAMIC_MEMORY == FALSE
static UINT8 bta_jv_sdp_raw_data[BTA_JV_SDP_RAW_DATA_SIZE];
static UINT8 __attribute__ ((aligned(4))) bta_jv_sdp_db_data[BTA_JV_SDP_DB_SIZE];/* ... */
#endif
tBTA_JV_CFG bta_jv_cfg = {
BTA_JV_SDP_RAW_DATA_SIZE,
BTA_JV_SDP_DB_SIZE,
#if BTA_DYNAMIC_MEMORY == FALSE
bta_jv_sdp_raw_data,
(tSDP_DISCOVERY_DB *)bta_jv_sdp_db_data /* ... */
#else
NULL,
NULL/* ... */
#endif
}{...};
tBTA_JV_CFG *p_bta_jv_cfg = (tBTA_JV_CFG *) &bta_jv_cfg;
/* ... */
#endif