change of branch

This commit is contained in:
Tom Gowan 2018-04-22 22:07:47 +10:00 • committed by mitchmindtree
parent e0a0dc9ec7
commit 49968f4b82
24 changed files with 1371 additions and 0 deletions

16
asio-sys/examples/test.rs Normal file
View file

@ -0,0 +1,16 @@
extern crate asio_sys as sys;
fn main() {
let driver_list = sys::get_driver_list();
for driver in &driver_list {
println!("Driver: {}", driver);
}
if driver_list.len() > 0 {
match sys::get_channels(&driver_list[0]) {
Ok(channels) => println!("Channels: {:?}", channels),
Err(e) => println!("Error retrieving channels: {}", e),
}
}
}