5. Defining Functions : Structure IIADD_FO_DFN
 
Share this page                  
Structure IIADD_FO_DFN
To define a new function, use the data structure IIADD_FO_DFN, included in the header file, IIADD.H. For the location of this file, see the chapter "Introducing Object Management Extension."
The fields in this structure are as follows:
fod_object_type
Specifies the object type. It must contain the constant II_O_OPERATION.
fod_name
Specifies the name of the function. The name can be up to 32 bytes in length and must be a valid database object name. If the name is shorter than 32 bytes, the name must be null terminated. For example, if the name is “op,” the field must contain “op\0." If the name is 32 bytes, omit the null terminator.
fod_id
Specifies the function number. Function numbers must be greater than or equal to 16384. Function numbers are symbolically identified in the header file by II_OPSTART.
fod_type
Specifies the type of operation invoked by the function or operator-must contain the value II_NORMAL.