Method
GdkContentProviderwrite_mime_type_async
Declaration [src]
void
gdk_content_provider_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.
This method completes asynchronously. Use gdk_content_provider_write_mime_type_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
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:
GOutputStreamThe
GOutputStreamto write to.The data is owned by the caller of the method. io_priority-
Type:
intI/O priority of the request.
cancellable-
Type:
GCancellableOptional
GCancellableobject,NULLto ignore.The argument can be NULL.The data is owned by the caller of the method. callback-
Type:
GAsyncReadyCallbackCallback to call when the request is satisfied.
The argument can be NULL. user_data-
Type:
gpointerThe data to pass to callback function.
The argument can be NULL.The data is owned by the caller of the method.