Symantec logo

shutdown

void res_shutdown();

You may select any name for the function.

Set the VCSAgEPInfo parameter of VCSAgSetEntryPoint() primitive to the name of the entry point's function.

In the following example, the function res_shotdown is defined as the Shutdown entry point.

For example:

#include "VCSAgApi.h"

void res_shutdown(const char *res_name) {

// Agent-specific de-initialization, if any.

}

void VCSAgStartup()

{

VCSAG_LOG_INIT("VCSAgStartup");

VCSAgSetLogCategory(10051);

VCSAgInitEntryPointStruct(V50);

VCSAgSetEntryPoint(VCSAgEPShutdown, res_shutdown);

VCSAgSetEntryPoint(VCSAgEPMonitor, res_monitor);

VCSAgSetEntryPoint(VCSAgEPOnline, res_online);

VCSAgSetEntryPoint(VCSAgEPOffline, res_offline);

VCSAgSetEntryPoint(VCSAgEPClean, res_clean);

}