Method

PurpleAccountcompare

unstable since: 3.0

[]

Declaration [src]

int
purple_account_compare (
  PurpleAccount* a,
  PurpleAccount* b
)
[]

Description [src]

Compares accounts a and b.

Available since: 3.0

[]

Parameters

a

Type: PurpleAccount

The first instance.

The argument can be NULL.
b

Type: PurpleAccount

The second instance.

The argument can be NULL.
The data is owned by the caller of the method.
[]

Return value

Type: int

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