mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Auto merge of #14276 - szeged:notify, r=jdm
Add Start/Stop notifications Add support for Start and Stop Notifications for WebBluetooth --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14276) <!-- Reviewable:end -->
This commit is contained in:
commit
c4b7cc863e
18 changed files with 364 additions and 4 deletions
|
@ -92,6 +92,7 @@ pub enum BluetoothRequest {
|
|||
GetDescriptors(String, Option<String>, IpcSender<BluetoothResponseResult>),
|
||||
ReadValue(String, IpcSender<BluetoothResponseResult>),
|
||||
WriteValue(String, Vec<u8>, IpcSender<BluetoothResponseResult>),
|
||||
EnableNotification(String, bool, IpcSender<BluetoothResponseResult>),
|
||||
Test(String, IpcSender<BluetoothResult<()>>),
|
||||
Exit,
|
||||
}
|
||||
|
@ -110,6 +111,7 @@ pub enum BluetoothResponse {
|
|||
GetDescriptors(BluetoothDescriptorsMsg),
|
||||
ReadValue(Vec<u8>),
|
||||
WriteValue(Vec<u8>),
|
||||
EnableNotification(()),
|
||||
}
|
||||
|
||||
pub trait BluetoothResponseListener {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue