Information Catalog Manager Programming Guide and Reference

FLGListObjTypes

Displays all object types currently registered and created in the information catalog database.

Authorization

Administrator or user

Syntax



APIRET  APIENTRY  FLGListObjTypes( PFLGHEADERAREA * ppListStruct,
                                   PFLGEXTCODE      pExtCode );

Parameters

ppListStruct (PFLGHEADERAREA) -- output
Points to the address of the pointer to the output structure listing the object types. When there is no output structure, the pointer to the structure is set to NULL.

Each entry has the following information:

Entries are sorted by 80-byte object type external name (EXTERNAL NAME OF OBJ TYPE); the actual order depends on the collating sequence used by the database management system used for the information catalog.

pExtCode (PFLGEXTCODE) -- output
Points to an extended code associated with the reason code. See Appendix D, Information Catalog Manager reason codes to see if a meaningful extended code is associated with the returned reason code.

Reason code (APIRET)
Represents the execution result of this API call.

See Appendix D, Information Catalog Manager reason codes for an explanation of the returned reason codes.

Output structure

FLGListObjTypes produces an output structure containing a list of object types, as shown in Figure 104.

The object area of the output structure contains a list of all the object types in the information catalog. These object types are identified by the values of the object type ID, the object type external name, and the object type DP NAME (short name).

Figure 104. FLGListObjTypes output structure


Figure FLAA2035 not displayed.

For an explanation of the meanings of the byte offsets, see The Information Catalog Manager API output structure.

Usage

Freeing memory allocated for an output structure

If FLGListObjTypes returned data in the output structure, you must save the data returned in the output structure and then call FLGFreeMem (see FLGFreeMem). Do not use other methods, for example, C language instructions, to free memory.

Examples

Figure 105 shows the C language code required to invoke the FLGListObjTypes API call. This sample code retrieves a list of all the object types in the information catalog.

Figure 105. Sample C language call to FLGListObjTypes

 
 PFLGHEADERAREA * ppListStruct;  // pointer to output structure pointer
 APIRET          rc;            // reason code from FLGListObjTypes
 FLGEXTCODE      ExtCode=0;          // extended code
   .
   .
   .
 rc = FLGListObjTypes (ppListStruct,  // address of output structure pointer
                       &ExtCode );
 

Figure 106 shows the output structure for this API call.

Figure 106. Sample output structure for FLGListObjTypes


Figure FLAA2036 not displayed.


[ Top of Page | Previous Page | Next Page ]