Add endpoint::get_name() and an enumerate example
This commit is contained in:
parent
8f11173256
commit
ec48453b6f
5 changed files with 23 additions and 1 deletions
|
|
@ -105,6 +105,12 @@ impl Endpoint {
|
|||
{
|
||||
Ok(SupportedFormatsIterator(try!(self.0.get_supported_formats_list())))
|
||||
}
|
||||
|
||||
/// Returns the name of the endpoint.
|
||||
#[inline]
|
||||
pub fn get_name(&self) -> String {
|
||||
self.0.get_name()
|
||||
}
|
||||
}
|
||||
|
||||
/// Number of channels.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue