axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
typedef int(* axlEqualFunc)(axlPointer a, axlPointer b)

Handler definition used to compare two elements.

In the case they are equal, 0 is returned. In the case a should be before b the -1 is returned. In the case a should be after b then 1 should be returned. A properly configured handler should help collections and other function to order elements.

Parameters
aThe element to compare
bThe other element to compare
Returns
A value selected from {-1,0,1} according to previous description.