1
6
7
8
9
10
15
16
17
18
25
26
27
28
29
33
34
35
38
39
40
43
44
45
46
47
48
49
50
51
52
53
/* ... */
#ifndef __BTC_SDP_H__
#define __BTC_SDP_H__
#include "btc/btc_task.h"
#include "esp_bt_defs.h"
#include "common/bt_target.h"
#include "bta/bta_sdp_api.h"
#include "bt_sdp.h"5 includes
#if (defined BTC_SDP_COMMON_INCLUDED && BTC_SDP_COMMON_INCLUDED == TRUE)
typedef enum {
BTC_SDP_ACT_INIT = 0,
BTC_SDP_ACT_DEINIT,
BTC_SDP_ACT_SEARCH,
BTC_SDP_ACT_CREATE_RECORD,
BTC_SDP_ACT_REMOVE_RECORD,
}{...} btc_sdp_act_t;
typedef union {
struct search_record_arg {
BD_ADDR bd_addr;
tSDP_UUID sdp_uuid;
}{...} search;
struct create_record_arg {
bluetooth_sdp_record *record;
}{...} create_record;
struct remove_record_arg {
int record_handle;
}{...} remove_record;
}{...} btc_sdp_args_t;
void btc_sdp_arg_deep_copy(btc_msg_t *msg, void *p_dest, void *p_src);
void btc_sdp_arg_deep_free(btc_msg_t *msg);
void btc_sdp_call_handler(btc_msg_t *msg);
void btc_sdp_cb_handler(btc_msg_t *msg);
/* ... */
#endif /* ... */
#endif