diff options
author | Fei Zheng <quic_zfei@quicinc.com> | 2019-12-25 10:45:51 +0800 |
---|---|---|
committer | Myles Watson <mylesgw@google.com> | 2020-12-17 22:23:14 +0000 |
commit | 07777023f3c54ae259308906b3f54d182c2ffd1d (patch) | |
tree | 1ba92a9a73a63d7e09cd7d0919e42ae30c2a6ed3 /include | |
parent | 2e8f8d5ba1ff23174cf33b4fc54bee7e9124715e (diff) | |
download | bt-07777023f3c54ae259308906b3f54d182c2ffd1d.tar.gz |
DIP: Implement API to get device identification information
Bug: 141666056
Test: atest net_test_bta
Sponsor: alainv@
Tag: #feature
Change-Id: I236e6f79a6d8bde640e47f9e30812c19bbcc4a40
Diffstat (limited to 'include')
-rw-r--r-- | include/hardware/bt_sdp.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/hardware/bt_sdp.h b/include/hardware/bt_sdp.h index 024ee40a1..93745bc2a 100644 --- a/include/hardware/bt_sdp.h +++ b/include/hardware/bt_sdp.h @@ -32,7 +32,8 @@ typedef enum { SDP_TYPE_PBAP_PSE, // Phone Book Profile - Server SDP_TYPE_PBAP_PCE, // Phone Book Profile - Client SDP_TYPE_OPP_SERVER, // Object Push Profile - SDP_TYPE_SAP_SERVER // SIM Access Profile + SDP_TYPE_SAP_SERVER, // SIM Access Profile + SDP_TYPE_DIP // Device Identification Profile } bluetooth_sdp_types; typedef struct _bluetooth_sdp_hdr { @@ -97,6 +98,16 @@ typedef struct _bluetooth_sdp_sap_record { bluetooth_sdp_hdr_overlay hdr; } bluetooth_sdp_sap_record; +typedef struct _bluetooth_sdp_dip_record { + bluetooth_sdp_hdr_overlay hdr; + uint16_t spec_id; + uint16_t vendor; + uint16_t vendor_id_source; + uint16_t product; + uint16_t version; + bool primary_record; +} bluetooth_sdp_dip_record; + typedef union { bluetooth_sdp_hdr_overlay hdr; bluetooth_sdp_mas_record mas; @@ -105,6 +116,7 @@ typedef union { bluetooth_sdp_pce_record pce; bluetooth_sdp_ops_record ops; bluetooth_sdp_sap_record sap; + bluetooth_sdp_dip_record dip; } bluetooth_sdp_record; /** Callback for SDP search */ |