Method

PurplePresencecompare

since: 2.0

Declaration [src]

int
purple_presence_compare (
  PurplePresence* presence1,
  PurplePresence* presence2
)

Description [src]

Compares the presences for availability.

Available since: 2.0

Parameters

presence2

Type: PurplePresence

The second presence.

The data is owned by the caller of the method.

Return value

Type: int

-1 if presence1 is more available than presence2. 0 if presence1 is equal to presence2. 1 if presence1 is less available than presence2.