OSI/MHS Gateway Programmatic Interface (GPI) Programming Guide

C Program Example
OSI/MHS Gateway Programmatic Interface (GPI) Programming Guide424822-001
B-36
print_object ( MH_T_MTS_IDENTIFIER,
max_PRINT_DEF,
print_arr,
f_descriptor_list,
descriptor_list,
actual_number);
/* Print eits */
max_PRINT_DEF = 1;
f_descriptor_list[0].type = MH_T_BUILTIN_EITS;
print_arr[0].type = MH_T_BUILTIN_EITS;
print_arr[0].text = " Builtin Eits: ";
printf (" Eits\n");
print_object ( MH_T_ORIGINAL_EITS,
max_PRINT_DEF,
print_arr,
f_descriptor_list,
descriptor_list,
actual_number);
/* Print or name */
max_PRINT_DEF = 6;
f_descriptor_list[0].type = MH_T_ADMD_NAME;
f_descriptor_list[1].type = MH_T_COUNTRY_NAME;
f_descriptor_list[2].type = MH_T_PRMD_NAME;
f_descriptor_list[3].type = MH_T_ORGANIZATION_NAME;
f_descriptor_list[4].type = MH_T_ORGANIZATIONAL_UNIT_NME_1;
f_descriptor_list[5].type = MH_T_SURNAME;
print_arr[0].type = MH_T_ADMD_NAME;
print_arr[1].type = MH_T_COUNTRY_NAME;
print_arr[2].type = MH_T_PRMD_NAME;
print_arr[3].type = MH_T_ORGANIZATION_NAME;
print_arr[4].type = MH_T_ORGANIZATIONAL_UNIT_NME_1;
print_arr[5].type = MH_T_SURNAME;
print_arr[0].text = " Admd Name: ";
print_arr[1].text = " Country Name: ";
print_arr[2].text = " Prmd name: ";
print_arr[3].text = " Organization Name: ";
print_arr[4].text = " Organization Unit Name: ";
print_arr[5].text = " Surname: ";
printf (" Originator Name\n");
print_object ( MH_T_ORIGINATOR_NAME,
max_PRINT_DEF,
print_arr,
f_descriptor_list,
descriptor_list,
actual_number);
/* Print message rd */
/*
* GPI_OM_LIST_ is needed to get the values from the multivalued
* attribute
*
*/
local_rc = GPI_OM_LIST_ ( root_id,
MH_T_RECIPIENT_DESCRIPTORS,
0, /* Value position */
MAX_DESCRIPTORS,