Type Alias alsa_sys::snd_mixer_compare_t

source ·
pub type snd_mixer_compare_t = Option<unsafe extern "C" fn(e1: *const snd_mixer_elem_t, e2: *const snd_mixer_elem_t) -> c_int>;
Expand description

\brief Compare function for sorting mixer elements \param e1 First element \param e2 Second element \return -1 if e1 < e2, 0 if e1 == e2, 1 if e1 > e2

Aliased Type§

enum snd_mixer_compare_t {
    None,
    Some(unsafe extern "C" fn(_: *const _snd_mixer_elem, _: *const _snd_mixer_elem) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *const _snd_mixer_elem, _: *const _snd_mixer_elem) -> i32)

Some value of type T.