Method

MetaSelectiontransfer_async

Declaration [src]

void
meta_selection_transfer_async (
  MetaSelection* selection,
  MetaSelectionType selection_type,
  const gchar* mimetype,
  gssize size,
  GOutputStream* output,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description [src]

Requests a transfer of mimetype on the selection given by selection_type.

Parameters

selection_type MetaSelectionType
 

Selection type.

mimetype const gchar*
 

Mimetype to transfer.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
size gssize
 

Maximum size to transfer, -1 for unlimited.

output GOutputStream
 

Output stream to write contents to.

 The data is owned by the caller of the function.
cancellable GCancellable
 

Cancellable.

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

User callback.

 The argument can be NULL.
user_data gpointer
 

User data.

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