forked from NZSmartie/btleplug
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support winrt-rs v0.7 (tentative NZSmartie#1)
- Loading branch information
Showing
10 changed files
with
192 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// btleplug Source Code File | ||
// | ||
// Copyright 2020 Nonpolynomial Labs LLC. All rights reserved. | ||
// | ||
// Licensed under the BSD 3-Clause license. See LICENSE file in the project root | ||
// for full license information. | ||
// | ||
// Some portions of this file are taken and/or modified from Rumble | ||
// (https://github.com/mwylde/rumble), using a dual MIT/Apache License under the | ||
// following copyright: | ||
// | ||
// Copyright (c) 2014 The Rust Project Developers | ||
|
||
use winrt::*; | ||
|
||
import!( | ||
dependencies | ||
os | ||
types | ||
windows::devices::bluetooth::generic_attribute_profile::{ | ||
GattCharacteristic, | ||
GattCharacteristicProperties, | ||
GattClientCharacteristicConfigurationDescriptorValue, | ||
GattCommunicationStatus, | ||
GattDeviceService, | ||
GattDeviceServicesResult, | ||
GattValueChangedEventArgs, | ||
} | ||
windows::devices::bluetooth::advertisement::* | ||
windows::devices::bluetooth::{ | ||
BluetoothConnectionStatus, | ||
BluetoothLEDevice, | ||
} | ||
windows::devices::radios::{ | ||
Radio, | ||
RadioKind | ||
} | ||
windows::foundation::{ | ||
EventRegistrationToken, | ||
TypedEventHandler, | ||
} | ||
windows::storage::streams::{ | ||
DataReader, | ||
DataWriter, | ||
} | ||
); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.