/* Returns: TRUE if stream was successfully closed, FALSE otherwise.  */
gboolean g_output_stream_close_finish(GOutputStream *stream, GAsyncResult *result, GError **error)
/* Returns: TRUE if stream was successfully closed, FALSE otherwise.  */
gboolean g_output_stream_close_finish(GOutputStream *stream, GAsyncResult *result, GError **error)
{
  g_return_val_if_fail (G_IS_OUTPUT_STREAM (stream), FALSE);
  g_return_val_if_fail (g_task_is_valid (result, stream), FALSE);
  g_return_val_if_fail (g_async_result_is_tagged (result, g_output_stream_close_async), FALSE);
  return g_task_propagate_boolean (G_TASK (result), error);
}