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

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: rebase 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..5a4cff75b12f9c599499f12c8ea64f2ea45e7f2c 100644
--- a/components/arc/common/bluetooth.mojom
+++ b/components/arc/common/bluetooth.mojom
@@ -287,6 +287,37 @@ interface BluetoothHost {
[MinVersion=1] ReadRemoteRssi@28(BluetoothAddress remote_addr)
=> (int32 rssi);
+ // Bluetooth Gatt Server functions
+ // Copy from Android API
Luis Héctor Chávez 2016/07/19 01:26:02 nit: Copied
puthik_chromium 2016/07/19 22:21:22 Done.
+ // https://source.android.com/devices/halref/bt__gatt__server_8h.html
+ [MinVersion=3] AddService@29(BluetoothGattServiceID service_id,
+ int32 num_handles)
+ => (int32 service_handle);
+ [MinVersion=3] AddCharacteristic@30(int32 service_handle,
+ BluetoothUUID uuid,
+ int32 properties,
+ int32 permissions)
+ => (int32 characteristic_handle);
+ [MinVersion=3] AddDescriptor@31(int32 service_handle,
+ BluetoothUUID uuid,
+ int32 permissions)
+ => (int32 descriptor_handle);
+ [MinVersion=3] StartService@32(int32 service_handle)
+ => (BluetoothGattStatus status);
+ [MinVersion=3] StopService@33(int32 service_handle)
+ => (BluetoothGattStatus status);
+ [MinVersion=3] DeleteService@34(int32 service_handle)
+ => (BluetoothGattStatus status);
+ [MinVersion=3] SendIndication@35(int32 attribute_handle,
+ BluetoothAddress address,
+ bool confirm,
+ array<uint8> value)
+ => (BluetoothGattStatus status);
+ [MinVersion=3] SendResponse@36(int32 trans_id,
+ int32 status,
+ array<uint8> value)
+ => (BluetoothGattStatus status);
+
};
interface BluetoothInstance {
@@ -326,4 +357,16 @@ interface BluetoothInstance {
BluetoothGattID char_id,
bool is_notify,
array<uint8> value);
+
+ // Bluetooth Gatt Server functions
+ [MinVersion=3] RequestGattRead@14(BluetoothAddress address,
+ int32 transaction_id,
+ int32 attribute_handle,
+ int32 offset,
+ bool is_long);
+ [MinVersion=3] RequestGattWrite@15(BluetoothAddress address,
+ int32 transaction_id,
+ int32 attribute_handle,
+ int32 offset,
+ array<uint8> value);
};

Powered by Google App Engine
This is Rietveld 408576698