Method

PurpleBadgecompare

unstable since: 3.0

Declaration [src]

int
purple_badge_compare (
  PurpleBadge* badge1,
  PurpleBadge* badge2
)

Description [src]

Gets which badge has higher priority.

If badge1 has a higher priority then an integer less than 0 will be returned. If their priorities are equal, 0 will be returned. If badge2 has a higher priority, an integer greater than 0 will be returned.

Available since: 3.0

Parameters

badge2

Type: PurpleBadge

The second badge.

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

Return value

Type: int

An integer less than 0 if badge1 has higher priorty, 0 if they have equal priorities, and an integer greater than 0 if badge2 has a higher priority.