Developer

API Reference

IDocModel_AddListener()

Brew Release
Brew MP 1.0.2
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.
Parameters
  • 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
Comment
There is no guarantee that the listeners will be called in order.
  • Follow