offline
unsigned int
res_offline(const char *res_name, void **attr_val);
You may select any name for the function.
The offline field of VCSAgV40EntryPointStruct passed to VCSAgRegisterEPStruct() must be assigned a pointer to this function.
For example:
#include "VCSAgApi.h"
unsigned int
res_offline(const char *res_name, void **attr_val) {
// Implement the code to offline a resource here.
...
// If monitor can check the state of the resource
// immediately, return 0. Otherwise, return the
// appropriate number of seconds to wait before
// calling monitor.
return 0;
}
void VCSAgStartup() {
VCSAgV40EntryPointStruct ep;
...
ep.offline = res_offline;
...
VCSAgRegisterEPStruct(V40, &ep);
}
|