Type Alias GFileReadMoreCallback

Source
pub type GFileReadMoreCallback = Option<unsafe extern "C" fn(file_contents: *const c_char, file_size: goffset, callback_data: gpointer) -> gboolean>;
Expand description

GFileReadMoreCallback: @file_contents: the data as currently read. @file_size: the size of the data currently read. @callback_data: data passed to the callback.

When loading the partial contents of a file with g_file_load_partial_contents_async(), it may become necessary to determine if any more data from the file should be loaded. A #GFileReadMoreCallback function facilitates this by returning %TRUE if more data should be read, or %FALSE otherwise.

Returns: %TRUE if more data should be read back. %FALSE otherwise.

Aliased Type§

enum GFileReadMoreCallback {
    None,
    Some(unsafe extern "C" fn(*const i8, i64, *mut c_void) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*const i8, i64, *mut c_void) -> i32)

Some value of type T.