PrgT_Preference_Transform_Function

Abstract

Callback: Used to define a custom transformation function.

Syntax

<transformation function name> (data_ptr)
Argument Type Description
data_ptr PrgT_Preference_Transform_Data * User-defined data that is passed to the callback.

Return Type

PrgT_Preference_Transform_Status

Status of transformation.

prg_env.h

Example

See example for prg_preference_transform_arguments_get().

Details

The arguments to the transformation function in the delta block are optional. However, the function itself is always expected to take in one argument and return a value indicating the status of the transformation.

Possible status codes that can be returned by a preference transformation function are:

  • PrgC_Preference_Transform_Status_Success
  • PrgC_Preference_Transform_Status_Do_Not_Migrate
  • PrgC_Preference_Transform_Status_Failure

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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