cniElementType

Gets the value of the type attribute for the specified syntax element. The syntax element type will have been set previously using cniSetElementType or cpiSetElementType.

Syntax

CciElementType cniElementType(
  int*         returnCode,
  CciElement*  targetElement);

Parameters

returnCode
The return code from the function (output).
targetElement
The address of the target syntax element object (input).

Return values

The value of the target element type is returned. If an error occurs, CCI_FAILURE is returned, and the returnCode parameter indicates the reason for the error.

Related concepts
User-defined message processing nodes
User-defined output nodes

Related tasks
Creating a message processing node in C

Related reference
C language node utility functions
cniElementAsBitstream
cniElementName
cniElementValue group
cniElementValueState
cniElementValueType
cniElementValueValue
cniSetElementType
cpiSetElementType