Syntax for C++ clean

unsigned int

res_clean(const char *res_name, VCSAgWhyClean reason, void

**attr_val);

You may select any name for the function.

Set the VCSAgValidateAndSetEntryPoint() parameter to the name of the entry point's function.

In the following example, the function res_clean is defined as the Clean entry point.

For example:

#include "VCSAgApi.h"

unsigned int

res_clean(const char *res_name, VCSAgWhyClean reason,

void **attr_val) {

// Code to forcibly offline a resource.

...

// If the procedure is successful, return 0; else

// return 1.

return 0;

void VCSAgStartup()

{

VCSAG_LOG_INIT("VCSAgStartup");

VCSAgSetLogCategory(10051);

VCSAgInitEntryPointStruct(V50);

VCSAgValidateAndSetEntryPoint(VCSAgEPMonitor, res_monitor);

VCSAgValidateAndSetEntryPoint(VCSAgEPOnline, res_online);

VCSAgValidateAndSetEntryPoint(VCSAgEPOffline, res_offline);

VCSAgValidateAndSetEntryPoint(VCSAgEPClean, res_clean);

}