Symantec logo

VCSAgRegisterEPStruct


  Note   


void VCSAgRegisterEPStruct (VCSAgAgentVersion version, void * entry_points);

This primitive requests that the 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(V50, &ep);

}