Crate alsahwdep

Crate alsahwdep 

Source
Expand description

§alsahwdep crate

Rust API bindings and wrappers for alsahwdep library to operate ALSA HwDep character device.

The alsahwdep library version 0.3.0 is the minimum supported version for underlying library.

The alsahwdep crate is automatically generated by gir tool provided by gtk-rs project. ALSAHwdep-0.0 file from alsahwdep library is used for the generation. But some functions are implemented manually.

§Usage

Add the following line to your Cargo.toml file:

[dependencies]
alsahwdep = "0.7"

The API documentation is available in https://docs.rs/alsahwdep/.

§License

The alsahwdep crate is released under MIT license.

§Dependency

The alsahwdep crate depends on API crates provided by gtk-rs project for type/object system, event loop, and dispacher.

§Repository

The alsahwdep crate is the part of ALSA project and maintained by ALSA gobject-introspection team. The remote repository is located in https://github.com/alsa-project/alsa-gobject-rs.

§Support

If finding issue, please file it in https://github.com/alsa-project/alsa-gobject-rs.

Re-exports§

pub use ffi;

Modules§

prelude
For convenience to provide auto-generated/manual traits, and their blanket implementations.
subclass
For subclass implementations derived from provided class.

Structs§

DeviceCommon
An interface to express common features of ALSA HwDep device.
DeviceInfo
A GObject-derived object to express information of ALSA hwdep device.

Enums§

DeviceCommonError
A set of enumerations for code of ALSAHwDep.DeviceCommonError error domain.
IfaceType
A set of enumerations for the interface of hwdep device.

Functions§

device_id_list
Get the list of numeric ID for available hwdep devices of sound card.
device_info
Get the information according to given numeric IDs for card and device.
hwdep_devnode
Allocate devnode string for hwdep device and return it when exists.
hwdep_sysname
Allocate sysname for hwdep device and return it when it exists.