OSI/MHS Gateway Programmatic Interface (GPI) Programming Guide
C Program Example
OSI/MHS Gateway Programmatic Interface (GPI) Programming Guide—424822-001
B-44
 } /* else */
} /* main */ 
 *******************************
 * Program example is starting *
 *******************************
 Call GPI_INITIALIZE_ --> was successful!
 Call GPI_OPEN_ --> was successful!
 Call BUILD_ROOT_OBJECT
 Creating and inserting ROOT ATTRIBUTES
 Object BILATERAL INFORMATION
 Create the object
 Remove the attribute PRMD_IDENTIFIER
 Insert all the required attributes
 Insert the object into the root object
 Object INTERPERSONAL MESSAGE
 Create the object
 Insert all the required attributes
 Object IA5 TEXT BODY PART
 Create the object
 Insert all the required attributes
 Use GPI_OM_WRITE to write the first line
 Use GPI_OM_WRITE_ to write the second line
    Insert the object into the IM_C_INTERPERSONAL_MESSAGE 
 object
 Object IPM IDENTIFIER
 Create the object
 Insert all the required attributes
 Insert the object into the IM_C_INTERPERONAL_MESSAGE 
object
 Insert the object into the root object
 Object EXTERNAL TRACE ENTRY
 Create the object
 Insert all required attributes
 Insert the object into the root object
 Object MTS IDENTIFIER
 Create the object
 Insert all required attributes
 Insert the object into the root object
 Object EITS
 Create the object
 Insert all required attributes
 Insert the object into the root object
 Object OR NAME
 Create
 Insert all required attributes
 Insert the object into the root object
 Object MESSAGE RD
 Create the object
 Insert all required attributes
 Object OR NAME
 Create the object
 Insert all required attributes
 Insert the object into the MH_C_MESSAGE_RD object
 Insert the object into the root object
 Copy the object
 Examine the object id of the copied object OR_NAME
 Delete the object MH_C_OR_NAME
 Second object OR NAME
 Create the object
 Insert all required attributes
 Insert the object into the MH_C_MESSAGE_RD object
Note. The following is a sample of output from the C program example.










