Remove DefaultHost type in favour of determining at runtime

Re-exports host-specific types so that they are available within the
platform module if necessary (e.g. host::asla::Host as AlsaHost).

Allows for converting platform-specific host types (e.g. AlsaHost) into
the dynamically dispatched type generated for the target platform
(`Host`).
This commit is contained in:
mitchmindtree 2019-06-25 16:54:50 +02:00
parent 283a73054e
commit 51eba20c44
2 changed files with 112 additions and 28 deletions

View file

@ -148,7 +148,7 @@ extern crate lazy_static;
#[macro_use]
extern crate stdweb;
pub use platform::{ALL_HOSTS, DefaultHost, HostId, available_hosts, default_host, host_from_id};
pub use platform::{ALL_HOSTS, HostId, available_hosts, default_host, host_from_id};
pub use samples_formats::{Sample, SampleFormat};
use failure::Fail;