API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

ITRIG_APPENDBARFILE()

Brew Release
Brew MP 1.0.2
See Also
ITRIG_ResetBarfiles()
Description
Appends a resource file to the list of active resource files for the Trig object.
Params
node
[]:
[in] Pointer to the ITrig interface object
path
[]:
[in] Path in the filesystem to the resource file the caller wishes to append to the list of barfiles
Interface
  • ITRIG
Prototype
  •    int ITRIG_AppendBarfile (ITrig* node, const char* path);
    
Return
  •    SUCCESS            - 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 resource file could not be opened or another error
                            occurred.
    

Side Effect
  • None
Comments
A Trig consists of a collection of resource files, each containing a set of paths. When a request for a particular path is received, the collection of resource files is traversed in search of a file supporting the requested path. The files are searched in reverse order; in other words, files appended later are searched first. Note that ITRIG_Activate must be called to make visible any changes made as a result of this call.