OSI/MHS Gateway Programmatic Interface (GPI) Programming Guide

C Program Example
OSI/MHS Gateway Programmatic Interface (GPI) Programming Guide424822-001
B-42
show_gpi_status (ZGPI_ANY);
}
/* Show the root object */
printf (" Call SHOW_MESSAGE \n");
rc = print_root_object inbound_object );
if (( rc == OM_RC_SUCCESS ) ||
( rc == ZGPI_RC_WARNING ))
{
printf ("\n SHOW_");
printf ("MESSAGE ");
printf ("--> was successful! \n");
if ( rc == ZGPI_RC_WARNING )
{
printf ("\n *********** WARNING! ");
printf ("**********\n");
show_gpi_status (ZGPI_ANY);
}
/* End transfer in */
printf (" Call GPI_MT_FINISH_TRANSFER_IN_");
rc = GPI_MT_FINISH_TRANSFER_IN_
( session,
inbound_object,
OM_FALSE, /* Delete this msg */
OM_FALSE, /* Finish only this msg*/
MH_REMOVE); /* Remove the object */
if (( rc == OM_RC_SUCCESS ) ||
( rc == ZGPI_RC_WARNING ))
{
printf (" --> was successful! \n");
if ( rc == ZGPI_RC_WARNING )
{
printf ("\n *********** WARNING! ");
printf ("**********\n");
show_gpi_status (ZGPI_ANY);
}
} /* if */
else
{
printf ("\n GPI_MT_FINISH_TRANSFER_IN_ ");
printf ("failed! Error: %d \n", rc );
show_gpi_status (ZGPI_ANY);
} /* else */
} /* if */
else
{
printf ("\n SHOW_MESSAGE failed! ");
printf ("Error: %d \n", rc );
show_gpi_status (ZGPI_ANY);
} /* else */
} /* if */
else
{
printf ("\n GPI_MT_START_TRANSFER_IN_ ");
printf ("failed! Error: %d \n", rc );
show_gpi_status (ZGPI_ANY);
} /* else */
} /* if */