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
- Use the KP op_apptrack_type_name_get() to get the name associated with an application type ID.