change of branch
This commit is contained in:
parent
e0a0dc9ec7
commit
49968f4b82
24 changed files with 1371 additions and 0 deletions
16
asio-sys/examples/test.rs
Normal file
16
asio-sys/examples/test.rs
Normal 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),
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue