prt_api_get_item_tracking_type

Name

prt_api_get_item_tracking_type

Purpose

Return the tracking type for a specific item.

Description

This function returns the tracking type for a specific item id. A value of 1 is returned if the item id is a serialized item otherwise the value 2 is returned.

Syntax

int prt_api_get_item_tracking_type ( item_type_id,
                             tracking_type, retstat )
char            *item_type_id;
COR_I1          *tracking_type;
COR_STATUS      *retstat;

Data Structures

None

Arguments

Argument Description
Input
item_type_id Pointer to a null terminated string containing a valid item type id.
Output
tracking_type Pointer to a 1 byte integer specifying the tracking type. A value of 1 is a serialized item, a value of 2 is a non-serialized item.
retstat Pointer to COR_STATUS structure.

Return Value

Either COR_SUCCESS or COR_WARNING.

COR_SUCCESS is returned if the item id has been found. COR_FAILURE is returned if the item id cannot be found in any tracking region.