Note that the name of the C++ function must be VCSAgStartup()
.
// This example shows the VCSAgStartup() entry point
// implementation,assuming that the monitor, online, and
// offline entry points are implemented in C++ and the
// respective function names are res_monitor, res_online,
VCSAG_LOG_INIT("VCSAgStartup");
VCSAgInitEntryPointStruct(V50);
VCSAgSetEntryPoint(VCSAgEPMonitor, res_monitor);
VCSAgSetEntryPoint(VCSAgEPOnline, res_online);
VCSAgSetEntryPoint(VCSAgEPOffline, res_offline);
VCSAgSetEntryPoint(VCSAgEPClean, res_clean);
VCSAgResState res_monitor(const char *res_name, void
**attr_val, int *conf_level) {
unsigned int res_online(const char *res_name,
unsigned int res_offline(const char *res_name,