Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1706)

Unified Diff: components/arc/common/bluetooth.mojom

Issue 2149713002: arc: bluetooth: Add SDP host side support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments on patch set 4 Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/arc/common/bluetooth.mojom
diff --git a/components/arc/common/bluetooth.mojom b/components/arc/common/bluetooth.mojom
index edb607eed13e086cfe4d7d77562baad70b8c071d..143f6efa83bd3f8b00d03e77f07958e5604b2405 100644
--- a/components/arc/common/bluetooth.mojom
+++ b/components/arc/common/bluetooth.mojom
@@ -225,6 +225,35 @@ 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 {
+ map<uint16, BluetoothSdpServiceAttr> attrs;
+};
+
+struct BluetoothCreateSdpRecordResult {
+ BluetoothStatus status;
+ uint32 service_handle;
+};
+
interface BluetoothHost {
EnableAdapter@0() => (BluetoothAdapterState state);
DisableAdapter@1() => (BluetoothAdapterState state);
@@ -316,6 +345,14 @@ interface BluetoothHost {
bool confirm,
array<uint8> value)
=> (BluetoothGattStatus status);
+
+ // Bluetooth SDP functions
+ [MinVersion=4] GetSdpRecords@37(BluetoothAddress remote_addr,
+ BluetoothUUID target_uuid);
+ [MinVersion=4] CreateSdpRecord@38(BluetoothSdpRecord record)
+ => (BluetoothCreateSdpRecordResult result);
+ [MinVersion=4] RemoveSdpRecord@39(uint32 service_handle)
+ => (BluetoothStatus status);
};
interface BluetoothInstance {
@@ -367,4 +404,10 @@ interface BluetoothInstance {
int32 offset,
array<uint8> value)
=> (BluetoothGattStatus status);
+
+ // Bluetooth SDP function
+ [MinVersion=4] OnGetSdpRecords@16(BluetoothStatus status,
puthik_chromium 2016/08/17 22:24:19 You need to add function stub at components/arc/te
Miao 2016/08/19 10:13:36 Done.
+ BluetoothAddress remove_addr,
+ BluetoothUUID target_uuid,
+ array<BluetoothSdpRecord> records);
};

Powered by Google App Engine
This is Rietveld 408576698