Virtual Method

GdkContentProviderwrite_mime_type_async

Declaration [src]

void
write_mime_type_async (
  GdkContentProvider* provider,
  const char* mime_type,
  GOutputStream* stream,
  int io_priority,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description [src]

Asynchronously writes the contents of provider to stream in the given mime_type.

The given mime type does not need to be listed in the formats returned by gdk_content_provider_ref_formats(). However, if the given GType is not supported, G_IO_ERROR_NOT_SUPPORTED will be reported.

The given stream will not be closed.

Parameters

mime_type

Type: const char*

The mime type to provide the data in.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
stream

Type: GOutputStream

The GOutputStream to write to.

The data is owned by the caller of the method.
io_priority

Type: int

I/O priority of the request.

cancellable

Type: GCancellable

Optional GCancellable object, NULL to ignore.

The argument can be NULL.
The data is owned by the caller of the method.
callback

Type: GAsyncReadyCallback

Callback to call when the request is satisfied.

user_data

Type: gpointer

The data to pass to callback function.

The argument can be NULL.
The data is owned by the caller of the method.