OSI/MHS Gateway Programmatic Interface (GPI) Programming Guide
C Program Example
OSI/MHS Gateway Programmatic Interface (GPI) Programming Guide—424822-001
B-4
buffer_in->info_struc_2.z_data.z_obj_count);
for ( counter = 0;
counter < buffer_in->info_struc_2.z_data.z_obj_count;
counter++ )
{
printf (" Object identifier: %ld\n",
buffer_in->info_struc_2.z_data.z_obj_lst[counter].z_obj_id);
printf (" Object class: %d\n\n",
buffer_in->info_struc_2.z_data.z_obj_lst[counter].z_obj_class);
} /* for */
printf ("\n");
break;
case ZGPI_ST_INFO_3:
*buffer_size = (unsigned short) sizeof (buffer_in->info_struc_3);
printf (" Structure type: Structure 3\n");
printf (" Code 1: %d\n",
buffer_in->info_struc_3.z_data.z_code1);
printf (" Code 2: %d\n",
buffer_in->info_struc_3.z_data.z_code2);
printf (" Code 3: %d\n",
buffer_in->info_struc_3.z_data.z_code3);
printf (" Code 4: %c\n",
buffer_in->info_struc_3.z_data.z_code4);
printf (" Code 5: %c\n\n",
buffer_in->info_struc_3.z_data.z_code5);
break;
case ZGPI_ST_INFO_4:
*buffer_size = (unsigned short) sizeof (buffer_in->info_struc_4);
printf (" Structure type: Structure 4\n");
printf (" Code 1: %d\n",
buffer_in->info_struc_4.z_data.z_code1);
printf (" Code 2: %ld\n",
buffer_in->info_struc_4.z_data.z_code2);
printf (" Code 3: %d\n\n",
buffer_in->info_struc_4.z_data.z_code3);
break;
case ZGPI_ST_INFO_5:
*buffer_size = (unsigned short) sizeof (buffer_in->info_struc_5);
printf (" Structure type: Structure 5\n");
printf (" Code 1: %d\n",
buffer_in->info_struc_5.z_data.z_code1);
printf (" Code 2: %ld\n",
buffer_in->info_struc_5.z_data.z_code2);
printf (" Code 3: %ld\n",
buffer_in->info_struc_5.z_data.z_code3);
printf (" Code 4: %ld\n",
buffer_in->info_struc_5.z_data.z_code4);
printf (" Code 5: %d\n\n",
buffer_in->info_struc_5.z_data.z_code5);
break;
} /* switch */
} /* print_info_buffer */
#pragma page
/**************************************************************************/
/* Function Name: show_gpi_status */
/* */
/* Arguments: status_context IN */
/* */
/* Description: This function calls GPI_STATUS and prints status */