Debian Codegraph @

third_party/rust/cubeb-sys/src/callbacks.rs

raw
1 // Copyright © 2017-2018 Mozilla Foundation
2 //
3 // This program is made available under an ISC-style license. See the
4 // accompanying file LICENSE for details.
5
6 use context::cubeb;
7 use std::os::raw::{c_long, c_void};
8 use stream::{cubeb_state, cubeb_stream};
9
10 pub type cubeb_data_callback = Option<
11 unsafe extern "C" fn(
12 *mut cubeb_stream,
13 *mut c_void,
14 *const c_void,
15 *mut c_void,
16 c_long,
17 ) -> c_long,
18 >;
19 pub type cubeb_state_callback =
20 Option<unsafe extern "C" fn(*mut cubeb_stream, *mut c_void, cubeb_state)>;
21 pub type cubeb_device_changed_callback = Option<unsafe extern "C" fn(*mut c_void)>;
22 pub type cubeb_device_collection_changed_callback =
23 Option<unsafe extern "C" fn(*mut cubeb, *mut c_void)>;