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

Developer

API Reference

CALLBACK_INIT()

Brew Release
Brew MP 1.0.2
See Also
None
Description

This macro sets up internal members of an AEECallback for scheduling and sets the notify function and the notify context.
Params
pcb
[]:
pointer to the AEECallback to set up
pcf
[]:
notify function
pcx
[]:
notify context
Evaluation
Side Effect
  • None
Definition
  •   CALLBACK_Init(pcb,pcf,pcx) \
         do { \
            (pcb)->pfnNotify = (CallbackNotifyFunc*)(pcf); \
            (pcb)->pNotifyData = (pcx); \
         } while (0);
    
Comments
pcf(pcx) is called when the AEECallback comes due (either via Resume or other scheduling operation).