Minimize compiler flags by using nested platform_impl mods

Also addresses some other CI errors:

- Add Host::new constructor for null backend
- Add missing DevicesError import to coreaudio backend
This commit is contained in:
mitchmindtree 2019-06-24 22:49:18 +02:00
parent f7cf0c65b8
commit 6e9b40e225
3 changed files with 49 additions and 23 deletions

View file

@ -7,6 +7,7 @@ use BuildStreamError;
use DefaultFormatError;
use Device as DeviceTrait;
use DeviceNameError;
use DevicesError;
use EventLoop as EventLoopTrait;
use Format;
use Host as HostTrait;

View file

@ -31,6 +31,12 @@ pub struct StreamId;
pub struct SupportedInputFormats;
pub struct SupportedOutputFormats;
impl Host {
pub fn new() -> Result<Self, crate::HostUnavailable> {
Ok(Host)
}
}
impl Devices {
pub fn new() -> Result<Self, DevicesError> {
Ok(Devices)