Index: device/bluetooth/public/interfaces/device.mojom |
diff --git a/device/bluetooth/public/interfaces/device.mojom b/device/bluetooth/public/interfaces/device.mojom |
index 19fe22e149a9456a58bc29be6bc15738f58b704e..f4f18bfb7bf300bd13bc205292b3508cffbd80d2 100644 |
--- a/device/bluetooth/public/interfaces/device.mojom |
+++ b/device/bluetooth/public/interfaces/device.mojom |
@@ -4,6 +4,8 @@ |
module bluetooth.mojom; |
+import "device/bluetooth/public/interfaces/uuid.mojom"; |
+ |
// TODO(crbug.com/657632): Remove when numerical values can be optional. |
struct RSSIWrapper { |
int8 value; |
@@ -13,11 +15,23 @@ struct DeviceInfo { |
string? name; |
string name_for_display; |
string address; |
+ bool is_gatt_connected; |
RSSIWrapper? rssi; |
}; |
+struct ServiceInfo { |
+ UUID uuid; |
+ bool is_primary; |
+}; |
+ |
interface Device { |
+ // Disconnects and deletes the Device. |
+ Disconnect(); |
+ |
// Gets basic information about the device. Returns null, if no device is |
// available. |
GetInfo() => (DeviceInfo? info); |
+ |
+ // Gets the GATT Services in this device's GATT Server. |
+ GetServices() => (array<ServiceInfo> services); |
}; |