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

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

Issue 2104023002: arc: bluetooth: Add Gatt server mojo API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bump mojo id 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
« no previous file with comments | « components/arc/bluetooth/arc_bluetooth_bridge.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/common/bluetooth.mojom
diff --git a/components/arc/common/bluetooth.mojom b/components/arc/common/bluetooth.mojom
index 38de174125a525f8a7fd2bfcbad2fd55d7834449..edb607eed13e086cfe4d7d77562baad70b8c071d 100644
--- a/components/arc/common/bluetooth.mojom
+++ b/components/arc/common/bluetooth.mojom
@@ -289,6 +289,33 @@ interface BluetoothHost {
[MinVersion=2] OpenBluetoothSocket@29()
=> (handle sock);
+
+ // Bluetooth Gatt Server functions
+ // Copied from Android API
+ // https://source.android.com/devices/halref/bt__gatt__server_8h.html
+ [MinVersion=3] AddService@30(BluetoothGattServiceID service_id,
+ int32 num_handles)
+ => (int32 service_handle);
+ [MinVersion=3] AddCharacteristic@31(int32 service_handle,
+ BluetoothUUID uuid,
+ int32 properties,
+ int32 permissions)
+ => (int32 characteristic_handle);
+ [MinVersion=3] AddDescriptor@32(int32 service_handle,
+ BluetoothUUID uuid,
+ int32 permissions)
+ => (int32 descriptor_handle);
+ [MinVersion=3] StartService@33(int32 service_handle)
+ => (BluetoothGattStatus status);
+ [MinVersion=3] StopService@34(int32 service_handle)
+ => (BluetoothGattStatus status);
+ [MinVersion=3] DeleteService@35(int32 service_handle)
+ => (BluetoothGattStatus status);
+ [MinVersion=3] SendIndication@36(int32 attribute_handle,
+ BluetoothAddress address,
+ bool confirm,
+ array<uint8> value)
+ => (BluetoothGattStatus status);
};
interface BluetoothInstance {
@@ -328,4 +355,16 @@ interface BluetoothInstance {
BluetoothGattID char_id,
bool is_notify,
array<uint8> value);
+
+ // Bluetooth Gatt Server functions
+ [MinVersion=3] RequestGattRead@14(BluetoothAddress address,
+ int32 attribute_handle,
+ int32 offset,
+ bool is_long)
+ => (BluetoothGattStatus status, array<uint8> value);
+ [MinVersion=3] RequestGattWrite@15(BluetoothAddress address,
+ int32 attribute_handle,
+ int32 offset,
+ array<uint8> value)
+ => (BluetoothGattStatus status);
};
« no previous file with comments | « components/arc/bluetooth/arc_bluetooth_bridge.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698