• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 
3 /******************************************************************************
4  *
5  *  Copyright 2014 The Android Open Source Project
6  *  Copyright 2003-2012 Broadcom Corporation
7  *
8  *  Licensed under the Apache License, Version 2.0 (the "License");
9  *  you may not use this file except in compliance with the License.
10  *  You may obtain a copy of the License at:
11  *
12  *  http://www.apache.org/licenses/LICENSE-2.0
13  *
14  *  Unless required by applicable law or agreed to in writing, software
15  *  distributed under the License is distributed on an "AS IS" BASIS,
16  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  *  See the License for the specific language governing permissions and
18  *  limitations under the License.
19  *
20  ******************************************************************************/
21 
22 /******************************************************************************
23  *
24  *  This is the private interface file for the BTA SDP I/F
25  *
26  ******************************************************************************/
27 #ifndef BTA_SDP_INT_H
28 #define BTA_SDP_INT_H
29 
30 #include "bta/include/bta_sdp_api.h"
31 #include "stack/include/sdp_status.h"
32 #include "types/bluetooth/uuid.h"
33 #include "types/raw_address.h"
34 
35 /*****************************************************************************
36  *  Constants
37  ****************************************************************************/
38 
39 /* SDP control block */
40 typedef struct {
41   bool sdp_active;
42   RawAddress remote_addr;
43   tBTA_SDP_DM_CBACK* p_dm_cback;
44 } tBTA_SDP_CB;
45 
46 /* SDP control block */
47 extern tBTA_SDP_CB bta_sdp_cb;
48 
49 /* config struct */
50 extern tBTA_SDP_CFG* p_bta_sdp_cfg;
51 
52 void bta_sdp_enable(tBTA_SDP_DM_CBACK* p_cback);
53 void bta_sdp_search(const RawAddress bd_addr, const bluetooth::Uuid uuid);
54 void bta_sdp_create_record(void* user_data);
55 void bta_sdp_remove_record(void* user_data);
56 
57 namespace bluetooth::testing {
58 void bta_create_dip_sdp_record(bluetooth_sdp_record* record, tSDP_DISC_REC* p_rec);
59 void bta_sdp_search_cback(Uuid uuid, const RawAddress& bd_addr, tSDP_RESULT result);
60 }  // namespace bluetooth::testing
61 
62 #endif /* BTA_SDP_INT_H */
63