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

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: Created 4 years, 5 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 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 {

Powered by Google App Engine
This is Rietveld 408576698