Previous  |  Next  >  
Product: Cluster Server Guides   
Manual: Cluster Server 4.1 Agent Developer's Guide   

open


 void res_open(const char *res_name, void **attr_val);

You may select any name for the function.

The open field of VCSAgV40EntryPointStruct passed to VCSAgRegisterEPStruct() must be assigned a pointer to this function.

For example:


 #include "VCSAgApi.h"

 void  res_open(const char *res_name, void **attr_val) {
  // Perform resource initialization, if any.
  // Register for attribute change notification, if needed.
 }

 void VCSAgStartup() {
  VCSAgV40EntryPointStruct ep;
  ...
  ep.open =  res_open;
  ...
  VCSAgRegisterEPStruct(V40, &ep);
 }
 ^ Return to Top Previous  |  Next  >  
Product: Cluster Server Guides  
Manual: Cluster Server 4.1 Agent Developer's Guide  
VERITAS Software Corporation
www.veritas.com