OmaT_Ot_Table_Sort_Proc
Abstract
Callback: Used to compare two rows of an OT table.
Syntax
<table_sort_proc_name> (ot_table_ptr, sort_data_ptr, row_a, row_b)
| Argument | Type | Description |
|---|---|---|
ot_table_ptr |
OmaT_Ot_Table * |
OT table being sorted. |
sort_data_ptr |
const void * |
Table data to be used to compare the rows. |
row_a |
int |
First row to compare. |
row_b |
int |
Second row to compare. |
Return Type
int
Result of row comparison (see Details).
Header
oma_ot.h
Details
This procedure should return one of the following values to indicate the precedence relationship between the two rows:
- 1—
row_ashould precederow_b - 0—
row_aandrow_bare equal in rank - -1—
row_bshould precederow_a
This callback function is used by Oma_Ot_Table_Rows_Sort().