blob: 92c90a24d034cc996c68c642a3e71c9ee58a73d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright © 2017-2018 Mozilla Foundation
//
// This program is made available under an ISC-style license. See the
// accompanying file LICENSE for details.
use std::{fmt, mem};
use std::os::raw::{c_char, c_uint};
#[repr(C)]
pub struct cubeb_layout_map {
name: *const c_char,
channels: c_uint,
layout: cubeb_channel_layout,
}
impl Default for cubeb_layout_map {
fn default() -> Self { unsafe { mem::zeroed() } }
}
// Explicit Debug impl to work around bug in ctest
impl fmt::Debug for cubeb_layout_map {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("cubeb_layout_map")
.field("name", &self.name)
.field("channels", &self.channels)
.field("layout", &self.layout)
.finish()
}
}
|