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

Developer

API Reference

MOD_NEWIMOD()

Brew Release
Brew MP 1.0.2
Description
Creates and initializes an empty, boiler-place instance of IMod. This function is designed to be called from a module's entry point: IMod_New(). The resulting instance of IMod can be returned, and will call back to the module's implementation for IMod_CreateInstance() invocations via pfnCI.
Params
piEnv
[]:
The IEnv that is passed to IMod_New(), the module's environment
iid
[]:
The interface that the new instance of IMod should meet (usually AEEIID_IMod)
ppiModOut
[out]:
On AEE_SUCCESS, filled with the new instance of IMod, to be returned
pfnCI
[]:
Callback the libmod implementation of IMod will call when IMod_CreateInstance() is called.
Interface
Prototype
  •    int mod_NewIMod(IEnv *piEnv, AEEIID iid, void** ppiModOut,
                       modCreateInstanceFunc* pfnCI);
    
Return
  • AEE_SUCCESS on success, otherwise a relevant error