OpenTP1 Version 7 Programming Reference C Language

[Contents][Index][Back][Next]

Type declaration

Format

typedef  [ [type_attribute, ...] ] type_specifier  type_declarator, ...;

Meaning

The type declaration defines a type used by an interface.

Specification item

type_attribute

Specify the attributes of the type to be declared. The following attributes can be specified:

type_specifier

Specify a data type. The basic type, configuration type (structure only), or any predefined type can be specified.

type_declarator

Specify the declarator of the type to be defined. The following can be specified:

Explanation

  1. The string attribute can be specified in char and byte arrays only.
  2. The ptr and ref attributes can be specified only for pointers to the basic type and structure type.

OpenTP1 IDL-only TxRPC restriction