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

VCS Primitives

Primitives are C++ methods implemented by the VCS agent framework. Beginning with the primitive VCSAgRegisterEPStruct() below, each VCS primitive is listed and defined in the following sections.

VCSAgRegisterEPStruct


void VCSAgRegisterEPStruct (VCSAgAgentVersion version, void * entry_points);

This primitive requests that the VCS agent framework use the entry point implementations designated in entry_points. It must be called only from the VCSAgStartup entry point.

For example:


 // This example shows how to use VCSAgRegisterEPStruct()
 // Primitive within the VCSAgStartup() entry point. It
 // is assumed here that the monitor, online, and offline
 // entry points are implemented in C++, and that the
 // respective function names are res_monitor,
 // res_online, and res_offline.

 #include "VCSAgApi.h"

 void VCSAgStartup() {
   VCSAgV40EntryPointStruct ep;

   ep.open = NULL;
   ep.close = NULL;
   ep.monitor = res_monitor;
   ep.online = res_online;
   ep.offline = res_offline;
   ep.action = NULL;
   ep.info = NULL;
   ep.attr_changed = NULL;
   ep.clean = NULL;
   ep.shutdown = NULL;
   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