Method

PurpleConnectiong_error

since: 3.0

Declaration [src]

void
purple_connection_g_error (
  PurpleConnection* pc,
  const GError* error
)

Description [src]

Closes a connection similar to purple_connection_error(), but takes a GError which is then converted to purple error codes.

This function ignores G_IO_ERROR_CANCELLED, returning without closing the connection. This can be used as a shortcut when cancelling connections, as this is commonly done when shutting down a connection. If G_IO_ERROR_CANCELLED needs to be caught, do so with g_error_matches() prior to calling this function.

Available since: 3.0

Parameters

error

Type: GError

Error information.

The data is owned by the caller of the function.