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

Developer

API Reference

A1STATICMOD

Brew Release
Brew MP 1.0.2
See Also
IModInfo_CreateInstance(), IMod Interface
Description

An AEEa1StaticMod describes a "static" module. A static module is a module that is statically linked with the component infrastructure, versus one that is dynamically loaded from a module's executable file.
The component infrastructure consults a table of these structures to determine which classes can be instantiated using static modules.
Params
piEnv
[]:
an interface exposing infrastructure services. See IEnv for more information on IEnv instances passed to "New" functions.
iid
[]:
interface to meet on ppiModOut (initially only IMod)
ppiModOut
[]:
[out] where the new Mod instance is placed on AEE_SUCCESS
Members
  • cpszName: the name of the module, used to locate the module's directory
  • cpbMIF: contents of the module's MIF, compiled into the phone
                    image
  • uMIFBufferLen: length of cpbMIFBuffer
  • pfnModNew: function to call to create the IMod for the static module
Definition
  • typedef struct a1StaticMod
    {
       const char*   cpszName;
       const byte*   cpbMIF;
       unsigned      uMIFBufferLen;
       int           (*pfnModNew)(IEnv* piEnv, AEEIID id, void** ppiModOut);
    
    } a1StaticMod;
    
Comments
The a1ModNewFunc function is treated as "synchronized", i.e. only one thread per process will enter the function at a time. This is done to allow process-local and module-local storage to be allocated in a safe way.