Type Alias alsa_sys::snd_hctl_compare_t

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

\brief Compare function for sorting HCTL 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_hctl_compare_t {
    None,
    Some(unsafe extern "C" fn(_: *const _snd_hctl_elem, _: *const _snd_hctl_elem) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.