Skip to main content

bluetooth_setsockopt

Function bluetooth_setsockopt 

Source
pub unsafe extern "C" fn bluetooth_setsockopt(
    fd: c_int,
    level: c_int,
    option: c_int,
    value: *const c_void,
    length: u32,
) -> c_int
Expand description

setsockopt, under a name that says which options this crate sets with it. *const c_void because the option value differs per level — a bt_security here, an hci_filter in crate::hci — and two extern declarations of one symbol with two signatures is a hard error.