Index: components/arc/common/bluetooth.mojom |
diff --git a/components/arc/common/bluetooth.mojom b/components/arc/common/bluetooth.mojom |
index 67bc7ff87234b306809d13909d18f71f7916b729..8d25c5c742dd94447c19b3a0e7ee0782d0696521 100644 |
--- a/components/arc/common/bluetooth.mojom |
+++ b/components/arc/common/bluetooth.mojom |
@@ -225,6 +225,44 @@ struct BluetoothGattDBElement { |
uint8 properties; |
}; |
+// Bluetooth SDP types |
+[Extensible] |
+enum BluetoothSdpAttrType { |
+ NULLTYPE = 0, |
+ UINT, |
+ INT, |
+ UUID, |
+ STRING, |
+ BOOL, |
+ SEQUENCE, |
+ URL, |
+}; |
+ |
+struct BluetoothSdpServiceAttr { |
+ BluetoothSdpAttrType type; |
+ uint32 type_size; |
+ array<uint8> value; |
+ array<BluetoothSdpServiceAttr> sequence; |
+}; |
+ |
+struct BluetoothSdpRecord { |
+ BluetoothSdpServiceAttr browse_group_list; |
+ BluetoothSdpServiceAttr service_class_id_list; |
+ BluetoothSdpServiceAttr protocol_desc_list; |
+ BluetoothSdpServiceAttr profile_desc_list; |
+ BluetoothSdpServiceAttr name; |
+}; |
+ |
+struct BluetoothGetSdpRecordsResult { |
+ BluetoothStatus status; |
+ array<BluetoothSdpRecord> records; |
+}; |
+ |
+struct BluetoothCreateSdpRecordResult { |
+ BluetoothStatus status; |
+ uint32 service_handle; |
+}; |
+ |
interface BluetoothHost { |
EnableAdapter@0() => (BluetoothAdapterState state); |
DisableAdapter@1() => (BluetoothAdapterState state); |
@@ -287,6 +325,10 @@ interface BluetoothHost { |
[MinVersion=1] ReadRemoteRssi@28(BluetoothAddress remote_addr) |
=> (int32 rssi); |
+ // Bluetooth SDP functions |
puthik_chromium
2016/07/25 18:44:16
FYI: I'm going to land http://crrev.com/2104023002
Miao
2016/07/26 07:20:45
Done.
|
+ GetSdpRecords@29(BluetoothAddress remote_addr) => (BluetoothGetSdpRecordsResult result); |
puthik_chromium
2016/07/25 18:44:16
Add [MinVersion=4] to all the new Method
Miao
2016/07/26 07:20:45
Done.
|
+ CreateSdpRecord@30(BluetoothSdpRecord record) => (BluetoothCreateSdpRecordResult result); |
+ RemoveSdpRecord@31(uint32 service_handle) => (BluetoothStatus status); |
}; |
interface BluetoothInstance { |