Constructor

PurpleContactnew

since: 3.0

Declaration [src]

PurpleContact*
purple_contact_new (
  PurpleAccount* account,
  const gchar* id
)

Description [src]

Creates a new PurpleContact.

If id is NULL, an ID will be randomly generated.

Available since: 3.0

Parameters

account

Type: PurpleAccount

The PurpleAccount this contact is from.

The data is owned by the caller of the function.
id

Type: const gchar*

The id of the contact.

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

Return value

Type: PurpleContact

The new instance.

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