/* For the synchronous version of this function, see g_file_output_stream_query_info().  */
void g_file_output_stream_query_info_async(GFileOutputStream *stream, const char *attributes, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
/* For the synchronous version of this function, see g_file_output_stream_query_info().  */
void g_file_output_stream_query_info_async(GFileOutputStream *stream, const char *attributes, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
{
  GFileOutputStreamClass *klass;
  GOutputStream *output_stream;
  GError *error = NULL;
  g_return_if_fail (G_IS_FILE_OUTPUT_STREAM (stream));
  output_stream = G_OUTPUT_STREAM (stream);
  if (!g_output_stream_set_pending (output_stream, &error))
    {
      g_task_report_error (stream, callback, user_data,
                           g_file_output_stream_query_info_async,
                           error);
      return;
    }
  klass = G_FILE_OUTPUT_STREAM_GET_CLASS (stream);
  stream->priv->outstanding_callback = callback;
  g_object_ref (stream);
  klass->query_info_async (stream, attributes, io_priority, cancellable,
                           async_ready_callback_wrapper, user_data);
}