OSI/MHS Gateway Programmatic Interface (GPI) Programming Guide
C Program Example
OSI/MHS Gateway Programmatic Interface (GPI) Programming Guide—424822-001
B-34
 printf (" Bilateral Information\n");
 print_object ( MH_T_BILATERAL_INFORMATION,
 max_PRINT_DEF,
 print_arr,
 f_descriptor_list,
 descriptor_list,
 actual_number); 
/* Print interpersonal message */
 max_PRINT_DEF = 4;
 f_descriptor_list[0].type = IM_T_AUTO_FORWARDED;
 f_descriptor_list[1].type = IM_T_IMPORTANCE;
 f_descriptor_list[2].type = IM_T_SENSITIVITY;
 f_descriptor_list[3].type = IM_T_SUBJECT;
 print_arr[0].type = IM_T_AUTO_FORWARDED;
 print_arr[1].type = IM_T_IMPORTANCE;
 print_arr[2].type = IM_T_SENSITIVITY;
 print_arr[3].type = IM_T_SUBJECT;
 print_arr[0].text = " Auto Forward: ";
 print_arr[1].text = " Importance: ";
 print_arr[2].text = " Sensitivity: ";
 print_arr[3].text = " Subject: ";
 printf (" Interpersonal Message\n");
 print_object ( MH_T_CONTENT,
 max_PRINT_DEF,
 print_arr,
 f_descriptor_list,
 descriptor_list,
 actual_number);
 /* Print subobject identifier and text body */
 exist = search_descriptor ( MH_T_CONTENT,
 descriptor_list,
 actual_number);
 if ( exist > -1 )
 {
 local_rc =
 GPI_OM_EXAMINE_( descriptor_list[exist].value.object.object,
 OM_TRUE, /* Values returned */
 0, /* First element */
 MAX_DESCRIPTORS,
 descriptor_list_2,
 &total_number_2,
 &actual_number_2,
 string_buffer_2,
 STRING_BUFFER_LEN,
 &actual_string_len_2,
 &total_string_len_2 );
 if (( local_rc == OM_RC_SUCCESS ) || ( local_rc == ZGPI_RC_WARNING ))
 {
 if ( local_rc == ZGPI_RC_WARNING )
 printf (" WARNING! number: %d \n", local_rc );
 max_PRINT_DEF = 2;
 f_descriptor_list[0].type = IM_T_REPERTOIRE;
 f_descriptor_list[1].type = IM_T_TEXT;
 print_arr[0].type = IM_T_REPERTOIRE;
 print_arr[1].type = IM_T_TEXT;
 print_arr[0].text = " Repertoire: ";
 print_arr[1].text = " Text: ";










