void purple_connection_g_error ( PurpleConnection* pc, const GError* error )
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.0
The data is owned by the caller of the function.