The caller is therefore responsible for the lifecycle of the supplied resource. Trigplayer will not delete it.
If ITRIG_ReferenceTriglet() is used to supply a Triglet with an ID (defined in the Triglet resource) that is already present in the Trig, then the existing Triglet will be released before the new Triglet is inserted. The method of release of the existing Triglet depends on whether it was supplied using ITRIG_AcceptTriglet() or ITRIG_ReferenceTriglet(). Only if the original resource was supplied using ITRIG_AcceptTriglet will it be deleted.
- node:[in] Pointer to the ITrig interface object
- path:[in] Path in the filesystem to the triglet the caller wishes to have accepted (by reference) into the list of active resource files.
int ReferenceTriglet (ITrig* node, const char* path);
SUCCESS - The triglet was accepted and the contained Resource file was successfully added to the path list EVERSIONNOTSUPPORT - The supplied resource file had a version that was not supported by this Trig EFAILED - The supplied triglet was unacceptable in some fashion