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..4fe67309bd635e5e30319f50ef3a9dccd0067bf0 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,20 @@ struct DeviceInfo { |
string? name; |
string name_for_display; |
string address; |
+ bool connected; |
ortuno
2016/10/25 10:42:10
nit: is_gatt_connected
mbrunson
2016/10/25 20:03:04
Done.
|
RSSIWrapper? rssi; |
}; |
+struct ServiceInfo { |
+ UUID uuid; |
+ bool primary; |
ortuno
2016/10/25 10:42:10
nit: is_primary
mbrunson
2016/10/25 20:03:04
Done.
|
+}; |
+ |
interface Device { |
// Gets basic information about the device. Returns null, if no device is |
// available. |
GetInfo() => (DeviceInfo? info); |
+ |
+ // Gets the discovered services advertising on this device. |
+ GetServices() => (array<ServiceInfo> services); |
}; |