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

Developer

API Reference

IUSERCODEMANAGER_ALLOCATE()

Brew Release
Brew MP 1.0.2
See Also
IUSERCODEMANAGER_Free()
Description
This function allocates a 16 bit unsigned user code that is unique to the applet
Interface
  • IUSERCODEMANAGER
Prototype
  •    int IUSERCODEMANAGER_Allocate (IUserCodeManager* po, uint16* pnUserCode)
    
    Parameters
    
       po :         poiner to the IUserCodeManager interface object
       pnUserCode : the address of where to store the user code
    
Return
  •    SUCCESS - *pnUserCode points to a new unique user code
       Any other value is an error code, eg ENOMEMORY
    

    Comments :
    Side Effects : Set of currently allocated user codes re-persisted using IPersistentStorage