VCSAgUnregister
void
VCSAgUnregister(const char *notify_res_name, const char *res_name,
const char *attr_name);
This primitive requests that the VCS agent framework stop notifying the resource notify_res_name when the value of the attribute attr_name of the resource res_name is modified. This primitive can be called from any entry point.
For example:
#include "VCSAgApi.h"
...
void res_close(const char *res_name, void **attr_val) {
// Unregister for the "CriticalAttr" of this resource.
VCSAgUnregister(res_name, res_name, "CriticalAttr");
// Unregister for the "CriticalAttr" of "CentralRes".
VCSAgUnregister(res_name, "CentralRes", "CriticalAttr");
// Unregister for the "CriticalAttr" of another resource.
// It is assumed that the name of the other resource is
// given as the first ArgList attribute.
VCSAgUnregister(res_name, (const char *)
attr_val[0], "CriticalAttr");
}
|