Method

PurpleProtocolFileTransferreceive_async

unstable since: 3.0

Declaration [src]

void
purple_protocol_file_transfer_receive_async (
  PurpleProtocolFileTransfer* protocol,
  PurpleFileTransfer* transfer,
  GAsyncReadyCallback callback,
  gpointer data
)

Description [src]

Starts the process of receiving transfer.

Note: This function does not take a cancellable as the protocol should be using PurpleFileTransfer:cancellable from transfer.

Available since: 3.0

This method completes asynchronously. Use purple_protocol_file_transfer_receive_finish() inside the GAsyncReadyCallback to obtain the result of the operation.

Parameters

transfer

Type: PurpleFileTransfer

The file transfer to send.

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

Type: GAsyncReadyCallback

A GAsyncReadyCallback to call when the request is satisfied.

The argument can be NULL.
data

Type: gpointer

User data to pass to callback.

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