clean
unsigned int
res_clean(const char *res_name, VCSAgWhyClean reason, void
**attr_val);
You may select any name for the function.
The clean field of VCSAgV40EntryPointStruct passed to VCSAgRegisterEPStruct() must be assigned a pointer to this function.
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() {
VCSAgV40EntryPointStruct ep;
...
ep.clean = res_clean;
...
VCSAgRegisterEPStruct(V40, &ep);
}
|