res_monitor(const char *res_name, void **attr_val,int *conf_level);
You may select any name for the function.
The parameter conf_level
is an output parameter. The return value, which indicates the resource status, must be a defined VCSAgResState
value.
See Return values for entry points.
res_monitor(const char *res_name, void **attr_val, int *conf_level)
// Code to determine the state of a resource.
if (res_state == VCSAgResOnline) {
// Determine the confidence level (0 to 100).
VCSAG_LOG_INIT("VCSAgStartup");
VCSAgInitEntryPointStruct(V50);
VCSAgSetEntryPoint(VCSAgEPMonitor, res_monitor);