Function

PurpleConnectionErrorInfonew

since: 3.0

Declaration [src]

PurpleConnectionErrorInfo*
purple_connection_error_info_new (
  PurpleConnectionError type,
  const gchar* description
)

Description [src]

Creates a new error info with the given properties.

Available since: 3.0

Parameters

type

Type: PurpleConnectionError

The PurpleConnectionError of the error.

description

Type: const gchar*

The description of the error.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: PurpleConnectionErrorInfo

The new instance.

The caller of the function takes ownership of the data, and is responsible for freeing it.