1 /*
2  * Copyright (C) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef SDP_CLIENT_H
17 #define SDP_CLIENT_H
18 
19 #include "sdp.h"
20 
21 #include "btstack.h"
22 #include "packet.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 // Initialize sdp client
29 void SdpInitializeClient();
30 // Finalize sdp client
31 void SdpFinalizeClient();
32 int SdpServiceSearch(const BtAddr *addr, const SdpUuid *uuidArray, void *context,
33     void (*serviceSearchCb)(const BtAddr *addr, const uint32_t *handleArray, uint16_t handleNum, void *context));
34 int SdpServiceAttribute(const BtAddr *addr, uint32_t handle, SdpAttributeIdList attributeIdList, void *context,
35     void (*serviceAttributeCb)(const BtAddr *addr, const SdpService *service, void *context));
36 int SdpServiceSearchAttribute(const BtAddr *addr, const SdpUuid *uuidArray, SdpAttributeIdList attributeIdList,
37     void *context,
38     void (*searchAttributeCb)(const BtAddr *addr, const SdpService *serviceArray, uint16_t serviceNum, void *context));
39 int SdpServiceBrowse(const BtAddr *addr, void *context,
40     void (*serviceBrowseCb)(const BtAddr *addr, const uint32_t *handleArray, uint16_t handleNum, void *context));
41 
42 #ifdef __cplusplus
43 }
44 #endif
45 
46 #endif  // SDP_CLIENT_H