Index: components/arc/common/bluetooth.mojom |
diff --git a/components/arc/common/bluetooth.mojom b/components/arc/common/bluetooth.mojom |
index 67bc7ff87234b306809d13909d18f71f7916b729..38c19cef0bade54bca0d6abf7381fd2df16ef893 100644 |
--- a/components/arc/common/bluetooth.mojom |
+++ b/components/arc/common/bluetooth.mojom |
@@ -225,6 +225,43 @@ struct BluetoothGattDBElement { |
uint8 properties; |
}; |
+// Bluetooth SDP types |
+enum BluetoothSdpAttrType { |
Luis Héctor Chávez
2016/07/13 18:52:46
Does this need an [Exetnsible] attribute?
Miao
2016/07/15 08:39:21
Done.
|
+ 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 +324,10 @@ interface BluetoothHost { |
[MinVersion=1] ReadRemoteRssi@28(BluetoothAddress remote_addr) |
=> (int32 rssi); |
+ // Bluetooth SDP functions |
+ GetSdpRecords@29(BluetoothAddress remote_addr) => (BluetoothGetSdpRecordsResult result); |
+ CreateSdpRecord@30(BluetoothSdpRecord record) => (BluetoothCreateSdpRecordResult result); |
+ RemoveSdpRecord@31(uint32 service_handle) => (BluetoothStatus status); |
}; |
interface BluetoothInstance { |