| Index: device/bluetooth/public/interfaces/device.mojom
|
| diff --git a/device/bluetooth/public/interfaces/device.mojom b/device/bluetooth/public/interfaces/device.mojom
|
| index 5448f342e424ba9cd95daceadb01f197c09b00db..2e3773ac787d780f9e9f8eebf5b6d830b7565bfb 100644
|
| --- a/device/bluetooth/public/interfaces/device.mojom
|
| +++ b/device/bluetooth/public/interfaces/device.mojom
|
| @@ -58,6 +58,11 @@ struct CharacteristicInfo {
|
| uint32 properties;
|
| };
|
|
|
| +struct DescriptorInfo {
|
| + string id;
|
| + UUID uuid;
|
| +};
|
| +
|
| interface Device {
|
| // Disconnects and deletes the Device.
|
| Disconnect();
|
| @@ -75,4 +80,12 @@ interface Device {
|
| // means that no characteristics were found.
|
| GetCharacteristics(string service_id) =>
|
| (array<CharacteristicInfo>? characteristics);
|
| +
|
| + // Gets the GATT Descriptors of the GATT Characteristic with matching
|
| + // |characteristic_id| in the GATT Service with matching |service_id|.
|
| + // If |descriptors| is null, an error occured while attempting to retrieve
|
| + // the array of descriptors. If |descriptors| is empty, this simply
|
| + // means that no descriptors were found.
|
| + GetDescriptors(string service_id, string characteristic_id) =>
|
| + (array<DescriptorInfo>? descriptors);
|
| };
|
|
|