Skip to main content

ly_write_clb

Type Alias ly_write_clb 

Source
pub type ly_write_clb = Option<unsafe extern "C" fn(user_data: *mut c_void, buf: *const c_void, count: usize) -> isize>;
Expand description

@brief Generic write callback for data printed by libyang.

@param[in] user_data Optional caller-specific argument. @param[in] buf Data to write. @param[in] count Number of bytes to write. @return Number of printed bytes. @return Negative value in case of error.

Aliased Type§

pub enum ly_write_clb {
    None,
    Some(unsafe extern "C" fn(*mut c_void, *const c_void, usize) -> isize),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void, *const c_void, usize) -> isize)

Some value of type T.