diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2021-01-08 21:42:32 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-01-08 21:42:32 +0000 |
commit | 8b5c14ce44d0bc286897e26ea26677f121fd50cd (patch) | |
tree | 7cc3ab21718d34c44f075adacbd3508ba9f9bc5a /include | |
parent | ba275c40249eec53f59f8222155a74b1d2bedfc1 (diff) | |
parent | 22945dd217cfcefbd931a330e08761bcd23dbf1f (diff) | |
download | bt-8b5c14ce44d0bc286897e26ea26677f121fd50cd.tar.gz |
Merge changes from topic "dip1.3"
* changes:
Use Bluetooth UUID definitions of header file
DIP: Implement API to get device identification information
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 */ |