0N/A
0N/AREADME: For NPT Library.
0N/A------------------------
0N/A
0N/ATo use this Native Platform Toolkit library, you need to add
0N/A-Isrc/share/npt and -I/src/${platform}/npt (platform is solaris or windows)
0N/Ato your compilation lines.
0N/A
0N/ATo initialize/use the library:
0N/A
0N/A #include "npt.h"
0N/A
0N/A NptEnv *npt;
0N/A
0N/A NPT_INITIALIZE(&npt, NPT_VERSION, NULL);
0N/A if (npt == NULL) {
0N/A FATAL_ERROR_MESSAGE(("Unable to gain access to Npt library"));
0N/A }
0N/A
0N/A /* To use the npt utf functions, they require initialization */
0N/A npt->utf = (npt->utfInitialize)(NULL);
0N/A if (npt->utf == NULL) {
0N/A FATAL_ERROR_MESSAGE(("Unable to gain access to Npt utf functions"));
0N/A }
0N/A
0N/A ...
0N/A
0N/A
0N/A /* After all uses is done, it can be terminated, however, if the
0N/A * process will be exiting anyway it isn't necessary, and if
0N/A * you have other threads running that might use these handles
0N/A * you will need to wait here until all those threads have terminated.
0N/A * So in general, termination can be a pain and slow your process
0N/A * termination down.
0N/A */
0N/A (npt->utfTerminate)(npt->utf,NULL);
0N/A NPT_TERMINATE(&npt, NULL);
0N/A
0N/A