/* Returns: (transfer full): A #GFileInfo for the finished query.  */
GFileInfo* g_file_output_stream_query_info_finish(GFileOutputStream *stream, GAsyncResult *result, GError **error)
/* Returns: (transfer full): A #GFileInfo for the finished query.  */
GFileInfo* g_file_output_stream_query_info_finish(GFileOutputStream *stream, GAsyncResult *result, GError **error)
{
  GFileOutputStreamClass *class;
  g_return_val_if_fail (G_IS_FILE_OUTPUT_STREAM (stream), NULL);
  g_return_val_if_fail (G_IS_ASYNC_RESULT (result), NULL);
  if (g_async_result_legacy_propagate_error (result, error))
    return NULL;
  else if (g_async_result_is_tagged (result, g_file_output_stream_query_info_async))
    return g_task_propagate_pointer (G_TASK (result), error);
  class = G_FILE_OUTPUT_STREAM_GET_CLASS (stream);
  return class->query_info_finish (stream, result, error);
}