op_apptrack_type_register()

Abstract

Obtains an ID for an application type name.

Syntax

op_apptrack_type_register (apptrack_hndl, app_type_name)
Argument Type Description
apptrack_hndl Apptrackhandle ADT state of interest.
app_type_name const char * Name of the application type.

Return Type

OpT_uInt32

Application type ID, or OPC_APPTRACK_APP_TYPE_INVALID if an error occurs.

Details

Application type IDs begin at 1. Duplicate calls with same application type name return the existing ID.

Purpose

This KP assigns a unique ID to an application type name. It then writes the application type name and ID to the application type file on disk.

Errors

  • Recoverable Error: Argument (apptrack_hndl) is NIL.
  • Recoverable Error: Argument (app_type_name) is NIL.

Reference

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