OSI/MHS Gateway Programmatic Interface (GPI) Programming Guide
C Program Example
OSI/MHS Gateway Programmatic Interface (GPI) Programming Guide—424822-001
B-43
else
{
printf ("\n *** No message available ! ****\n");
} /* else */
} /* if */
else
{
printf ("\n GPI_MT_WAIT failed! Error: %d \n",
rc );
show_gpi_status (ZGPI_ANY);
} /* else */
} /* if */
else
{
printf ("\n GPI_MT_TRANSFER_OUT failed! ");
printf ("Error: %d \n", rc );
show_gpi_status (ZGPI_ANY);
} /* else */
} /* if */
else
{
printf ("\n BUILD_ROOT_OBJECT failed! ");
printf ("Error: %d \n", rc );
show_gpi_status (ZGPI_ANY);
} /* if */
/* Close the session */
printf (" Call GPI_CLOSE_ ");
rc = GPI_CLOSE_ (session);
if (( rc == OM_RC_SUCCESS ) || ( rc == ZGPI_RC_WARNING ))
{
printf (" --> was successful! \n");
if ( rc == ZGPI_RC_WARNING )
{
printf ("\n *********** WARNING! **********\n");
show_gpi_status (ZGPI_ANY);
}
printf ("\n *******************");
printf ("*****************\n");
printf (" * Programming example");
printf (" is finishing *\n");
printf (" *********************");
printf ("***************\n\n");
} /* if */
else
{
printf ("\n GPI_CLOSE failed! Error: %d \n", rc );
show_gpi_status (ZGPI_ANY);
} /* else */
} /* if */
else
{
printf ("\n GPI_OPEN failed! Error: %d \n", rc );
show_gpi_status (ZGPI_ANY);
} /* else */
} /* if */
else
{
printf ("\n GPI_INITIALIZE failed! Error: %d \n", rc );
show_gpi_status (ZGPI_ANY);