Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Dependencies

The Dependencies primitive declares a list of external class dependencies. It allows all applets in the module to use privileged classes (i.e. to create instance of those classes), or to become part of any ACL group for FS or FIFO access. Each element in the dependencies list is a 32-bit unique ID representing the external class or privilege needed by this module. Multiple dependency lists are automatically merged.

Dependencies should be listed here only for Brew MP MOD modules, and privileges should be declared in the respective Applet and Service primitives. Dependencies can be listed for any module, however they are only used by Brew MP for applets. Dependencies not only imply a dependency on another class, they also convey that ClassID as a privilege to any Applet in the module.

The Dependencies primitive is supported for backward compatibility, and for when this field is required for submission to the BREW Distribution System (BDS).

Prototype

Dependencies { 
   AEECLSID_MyClass,  
   0xafa11bad,
}

Example

For example, where there is a file named AEECLSID_MyClass.bid that contains the following definition of a friendly ClassID:

#define AEECLSID_MyClass 0x6F30438A

The CIF file that contains the Dependencies primitive can include AEECLSID_MyClass.bid, which provides a definition of the friendly ClassID. You can use either friendly ClassIDs or raw ClassIDs.

include "AEECLSID_MyClass.bid"
include "AEEGROUPID_MCF_PICTURE.BID" -- Need to include to use AEEGROUPID_MCF_PICTURE.
                                     -- This file is available in the Brew MP SDK.

Dependencies { 
   AEECLSID_MyClass, 
   AEEGROUPID_MCF_PICTURE, 
}

Dependencies imply privileges, which apply to every applet described in a MIF file.