• 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 "types/bluetooth/uuid.h"
32 #include "types/raw_address.h"
33 
34 /*****************************************************************************
35  *  Constants
36  ****************************************************************************/
37 
38 /* SDP control block */
39 typedef struct {
40   bool sdp_active;
41   RawAddress remote_addr;
42   tBTA_SDP_DM_CBACK* p_dm_cback;
43 } tBTA_SDP_CB;
44 
45 /* SDP control block */
46 extern tBTA_SDP_CB bta_sdp_cb;
47 
48 /* config struct */
49 extern tBTA_SDP_CFG* p_bta_sdp_cfg;
50 
51 extern void bta_sdp_enable(tBTA_SDP_DM_CBACK* p_cback);
52 extern void bta_sdp_search(const RawAddress bd_addr,
53                            const bluetooth::Uuid uuid);
54 extern void bta_sdp_create_record(void* user_data);
55 extern void bta_sdp_remove_record(void* user_data);
56 
57 #endif /* BTA_SDP_INT_H */
58