Vi18nClose


Call the Vi18nClose function to release resources associated with the I18N library.


Syntax

Vi18nError Vi18nClose(void *pContext)

Arguments

 


pContext

void*   The library context handle set by the Vi18nInit function.


Returns

This function returns one of the following error codes:

Vi18nSuccess for success

 

Vi18nError_* for an error code identified in Error Codes

 

Vi18nFail for a non-specific error

 


Description

You typically call the Vi18nClose function from your gateway driver’s VgwSessionFree callback function. The Vi18nClose function closes the kvutil library, which may cause it to be unloaded. The function then releases all resources associated with the library context and deletes the context object pointed to by the pContext argument.


Example

typedef struct _VgwAppSession {
  ...
  VdkVoidp   vi18nContext;    /* vi18n library handle */
} VgwAppSessionRec;

Vi18nError err;
if (Vi18nSuccess != (err =Vi18nClose((void*)pVSes->vi18nContext)))
  vgw_errPrint(pVSes, VdkMessageType_Warn,
                     (VdkCString)Vi18nErrorMsg(err));
pVSes->vi18nContext = NULL;