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

Developer

API Reference

IDOCMODEL_ADDLISTENER()

Brew Release
Brew MP 1.0.2
See Also
Description
This function allows client objects to attach a listener to the given model. The listener includes a callback function that will be called whenever the model has changed state.
Params
p
[]:
Pointer to the IDocModel interface object.
pl
[]:
Pointer to the ModelListener that will be attached to the object. The ModelListener will contain the PFNLISTENER callback function that will be called for IDocModel events.
Interface
Prototype
  •    int IDocModel_AddListener(IDocModel *p, ModelListener *pl); 
    
Return
  •    AEE_SUCCESS          - Listener successfully added
       AEE_EBADPARM         - Invalid argument
       ENOMEMORY            - Insufficient memory
    
Side Effect
  • None
Comments
There is no guarantee that the listeners will be called in order.