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);
}
|