Method

PurpleContactInfocompare

since: 3.0

Declaration [src]

int
purple_contact_info_compare (
  PurpleContactInfo* a,
  PurpleContactInfo* b
)

Description [src]

Compares contacts a and b.

Available since: 3.0

Parameters

b

Type: PurpleContactInfo

The second instance.

The argument can be NULL.
The data is owned by the caller of the function.

Return value

Type: int

Less than 0 if a should be sorted before b, 0 if they sorted equally, and greater than 0 if a should be sorted after b.