OpenAPI Function Reference

This chapter provides details about each OpenAPI function. It begins with a description of the generic parameters that are common to each OpenAPI function. It then lists the output parameters for which the OpenAPI allocates and manages memory. It also describes each OpenAPI function and provides its syntax and a description of its parameters.

Note: For a description of non-standard C data types used in OpenAPI parameter blocks, see OpenAPI Data Types.

Previous Topic

Next Topic

Generic Parameters

Each OpenAPI function parameter block has a common substructure. This substructure contains generic parameters for handling asynchronous processing and for communicating the return status of the OpenAPI function.

The substructure is the first element in most parameter blocks:

typedef struct _IIAPI_GENPARM
{
      II_VOID      (II_FAR II_CALLBACK *gp_callback)
                   (II_PTR closure, II_PTR parmBlock);
      II_PTR        gp_closure;
      II_BOOL       gp_completed;
      IIAPI_STATUS  gp_status;
      PTR           gp_errorHandle;
} IIAPI_GENPARM;

The generic parameters are as follows:

Previous Topic

Next Topic

How Memory is Managed for Data Input and Output

An application allocates memory for each OpenAPI function argument and its input parameters. The application also allocates memory for the output parameters, with the exception of the parameters listed in the following table. These parameters are allocated by OpenAPI:

Parameter

Function

ce_eventDB

IIapi_catchEvent()

ce_eventName

IIapi_catchEvent()

ce_eventOwner

IIapi_catchEvent()

ce_eventTime.dv_value

IIapi_catchEvent()

cp_fileName

IIapi_getCopyMap()

cp_logName

IIapi_getCopyMap()

cp_dbmsDescr

IIapi_getCopyMap()

cp_fileDescr

IIapi_getCopyMap()

gd_descriptor

IIapi_getDescriptor()

ge_message

IIapi_getErrorInfo()

svr_parmDescr

IIapi_getErrorInfo()

svr_parmValue

IIapi_getErrorInfo()

The output parameters allocated by OpenAPI are maintained until the application calls IIapi_close() with the statement handle associated with these parameters. To retain the information after IIapi_close() is invoked, the application copies the parameters into its own buffers.


© 2007 Ingres Corporation. All rights reserved.