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

Developer

API Reference

IVFSCACHEMODEL_CREATECHILD()

Brew Release
Brew MP 1.0.2
Description
As described above, the IVfsCacheContainer controls the lifecycle of the child nodes, and the model is called to create and destroy child nodes on the fly when required. This function should return a new child node generated according to the given parameters.
Params
po
[]:
Pointer to the IVfsCacheModel interface object
container
[]:
Pointer to the associated cache container
name
[]:
The name of the required child node.
ppC
[]:
The address where a pointer to the new child node should be stored by this call.
Interface
  • IVFSCACHEMODEL
Prototype
  •    int IVFSCACHEMODEL_CreateChild(IVfsCacheModel *,IVfsCacheContainer * container,VfsPathElement name,IVfsNode ** ppC)
    
Return
  •    SUCCESS - the node was created and a pointer stored at ppC
       other - standard error code.
    
Comments
This function MUST be present in all cache models