Method

GioFilecreate_readwrite_finish

Declaration

GFileIOStream*
g_file_create_readwrite_finish (
  GFile* file,
  GAsyncResult* res,
  GError** error
)

Description

Finishes an asynchronous file create operation started with g_file_create_readwrite_async().

Available since:2.22

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: GFileIOStream
 

A GFileIOStream 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.