doc/reference/libpurple/signals_xfer.md

Wed, 25 May 2022 23:52:45 -0500

author
Elliott Sales de Andrade <quantum.analyst@gmail.com>
date
Wed, 25 May 2022 23:52:45 -0500
changeset 41408
5323c0b51ddc
parent 41164
d861b10105fb
permissions
-rw-r--r--

Remove prpl-gtalk from XMPP console

It no longer exists, and complicates the code a bit.

Title: File Transfer Signals
Slug: file-transfer-signals

## File Transfer Signals

### Signal List

* [file-recv-request](#file-recv-request)

### Signal Detail

#### file-recv-request

```c
void user_function(PurpleXfer *xfer, gpointer data);
```

Emitted before the user is prompted for an incoming file-transfer. Plugins can intercept the signal to auto-accept/auto-reject the requests. To auto-accept the file transfer, use purple_xfer_request_accepted(). To auto-reject, set the status of the xfer to PURPLE_XFER_STATUS_CANCEL_LOCAL.

**Parameters:**

**xfer**
: The file transfer.

**data**
: User data.

mercurial