Signal

PurpleXfer::write-local

since: 3.0.0

Declaration

glong
write_local (
  PurpleXfer* self,
  gpointer buffer,
  glong size,
  gpointer user_data
)

Description [src]

Write data received from the protocol locally. The signal handler must deal with the entire buffer and return size, or it is treated as an error.

The default class handler will write to a file using standard library functions. If you connect to this signal, you must connect to PurpleXfer::open-local, PurpleXfer::query-local, PurpleXfer::read-local and PurpleXfer::data-not-sent as well.

Default handler:

The default handler is called after the handlers added via g_signal_connect().

Available since: 3.0.0

Parameters

buffer

Type: gpointer

The buffer to write.

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

Type: glong

The size of the buffer.

Return value

Type: glong

size if the write was successful, or a value between 0 and size on error.