presence_type_cmp_availability


Description:

[ Version ( since = "0.7.16" ) ]
public static int presence_type_cmp_availability (ConnectionPresenceType p1, ConnectionPresenceType p2)

Compares p1 and p2 like strcmp.

p1 > p2 means p1 is more available than p2.

The order used is: available > busy > away > xa > hidden > offline > error > unknown > unset

Parameters:

p1

a ConnectionPresenceType

p2

a ConnectionPresenceType

Returns:

-1, 0 or 1, if p1 is <, == or > than p2.




2022 vala-language.org