Add endpoint::get_name() and an enumerate example

This commit is contained in:
Pierre Krieger 2015-09-22 14:46:27 +02:00
parent 8f11173256
commit ec48453b6f
5 changed files with 23 additions and 1 deletions

View file

@ -51,6 +51,11 @@ unsafe impl Send for Endpoint {}
unsafe impl Sync for Endpoint {}
impl Endpoint {
#[inline]
pub fn get_name(&self) -> String {
"unknown".to_owned() // TODO:
}
#[inline]
fn from_immdevice(device: *mut winapi::IMMDevice) -> Endpoint {
Endpoint {