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).

oma_ot.h

Details

This procedure should return one of the following values to indicate the precedence relationship between the two rows:

  • 1—row_a should precede row_b
  • 0—row_a and row_b are equal in rank
  • -1—row_b should precede row_a

This callback function is used by Oma_Ot_Table_Rows_Sort().

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com