5.1.1.4.3 Exiting Function

The exiting function is called before closing theplug-in shared library when the GWWS server shuts down. You should release all reserved plug-in resources.

The exiting function uses the following syntax:

int _ws_pi_exit_@ID@_@Name@(void * priv); 
@ID@ indicates the actual plug-in ID value. @Name@ indicates the actual plug-in name value. For example, the initiating exiting function name of a plug-in with P_CUSTOM_TYPE as a plug-in ID and MyType as a plug-in name is:
__ws_pi_exit_P_CUSTOM_TYPE_MyType(void * priv).
.