OpenTP1 Version 7 Programming Reference C Language

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

Operation declaration

Format

[ [operation_attribute, ...] ] type_specifier
          operation_identifier (parameter_declaration, ...);
[ [operation_attribute, ...] ] type_specifier
           operation_identifier ( [void] );

Meaning

The operation declaration defines a function for actual processing.

Specification item

operation_attribute

Specify an operation attribute. The following attribute can be specified:

type_specifier

Specify a data type. If a data type is returned from the operation, specify that data type. Specify a scalar type or predefined type. If no result is returned, specify void. The permitted type is integer.

operation_identifier

Specify an operation name. Up to 30 characters can be specified.

parameter_declaration

Specify a parameter declaration. It declares an operation parameter.

Explanation

  1. The transaction_mandatory and transaction_operation attributes cannot be specified at the same time.
  2. Use a complete pointer for a value returned from the operation.

OpenTP1 IDL-only TxRPC restriction