Method

GioFileread_finish

Declaration

GFileInputStream*
g_file_read_finish (
  GFile* file,
  GAsyncResult* res,
  GError** error
)

Description

Finishes an asynchronous file read operation started with g_file_read_async().

Parameters

res GAsyncResult
 

A GAsyncResult.

 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GFileInputStream
 

A GFileInputStream or NULL on error. Free the returned object with g_object_unref().

 The caller of the method takes ownership of the data, and is responsible for freeing it.