Previous Obsolete IDL Features: Obsolete Remote Procedure Calls Next


This functionality is obsolete. It should not be used in new IDL code.

The varinfo_t Structure

The varinfo_t structure is used to pass variables to and from the IDL server.

The varinfo_t structure is defined in the idldir/external/rpc/rpc_idl.h file. The structure is:

typedef struct _VARINFO {
char Name[MAXIDLEN+1];
IDL_VPTR Variable;
IDL_LONG Length;
} varinfo_t;  

Variable Creation Functions

A number of functions are provided to help build varinfo_t structures. These functions are contained in the file idldir/external/rpc/helper.c.

The variable creation functions are described below. Unless otherwise noted, all of the following functions return TRUE if variable creation is successful and FALSE otherwise. When passing a varinfo_t structure pointer, if the Variable field is NULL, the variable creation functions attempt to allocate that field.

  IDL Online Help (March 06, 2007)