void VCSAgStartup();
Note that the name of the C++ function must be VCSAgStartup().
For example:
// This example shows the VCSAgStartup() function // implementation,assuming that the monitor, online, offline // and clean entry points are implemented in C++ and the // respective function names are res_monitor, res_online, // res_offline, and res_clean. #include "VCSAgApi.h" void VCSAgStartup() { VCSAG_LOG_INIT("VCSAgStartup"); VCSAgSetLogCategory(10051); VCSAgInitEntryPointStruct(V51); VCSAgValidateAndSetEntryPoint(VCSAgEPMonitor, res_monitor); VCSAgValidateAndSetEntryPoint(VCSAgEPOnline, res_online); VCSAgValidateAndSetEntryPoint(VCSAgEPOffline, res_offline); VCSAgValidateAndSetEntryPoint(VCSAgEPClean, res_clean); } VCSAgResState res_monitor(const char *res_name, void **attr_val, int *conf_level) { ... } unsigned int res_online(const char *res_name, void **attr_val) { ... } unsigned int res_offline(const char *res_name, void **attr_val) { ... } unsigned int res_clean(const char *res_name, VCSAgWhyClean reason, void **attr_val) { ... }