(* GFileReadMoreCallback) (
  const char* file_contents,
  goffset file_size,
  gpointer callback_data

Description [src]

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.


file_contents const char*

The data as currently read.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
file_size goffset

The size of the data currently read.

callback_data gpointer

Data passed to the callback.

Return value

Returns: gboolean

TRUE if more data should be read back. FALSE otherwise.