Method

PurpleContactsadd

unstable since: 3.0

Declaration [src]

gboolean
purple_contacts_add (
  PurpleContacts* contacts,
  PurpleContact* contact
)

Description [src]

Add a contact.

If a contact with a matching id already exists, no action will be taken.

Available since: 3.0

Parameters

contact

Type: PurpleContact

The contact to add.

The data is owned by the caller of the method.

Return value

Type: gboolean

True if the contact was added.