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),
}