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

Developer

API Reference

IVFSNODE_ADDOBSERVER()

Brew Release
Brew MP 1.0.2
See Also
IVFSNODE_GetData() IVFSNODE_SetData() IVFSCONTAINER_AddObserver()
Description
Adds a observer to either this node, or to a child of this node.
Params
po
[]:
Pointer to the IVfsNode interface object
path
[]:
Remainder of the path to the requested node
ob
[]:
The observer to add to the node
Interface
  • IVFSNODE
Prototype
  •    int IVFSNODE_AddObserver(IVfsNode * po,VfsPath path,VfsObserver * ob)
    
Return
  •    SUCCESS, or error code
    
Side Effect
  • None
Comments
The observer function will be called when the value held by the node changes. If at end of path, then the observer will be attached to this node. If called on a non-container node and the supplied path is not at the end of path, the call will fail.