Type Alias tar_unpack_file_cb
Source pub type tar_unpack_file_cb = Option<unsafe extern "C" fn(name: *const c_char, is_directory: bool, context: *mut c_void) -> bool>;
Expand description
Optional per-entry callback on unpacking
§Arguments
name - Name of the file or directory
is_directory - True if the entry is a directory
context (direction in) - User context
§Returns
true to process the entry, false to skip
pub enum tar_unpack_file_cb {
None,
Some(unsafe extern "C" fn(*const u8, bool, *mut c_void) -> bool),
}