Previous Topic

Next Topic

Book Contents

Book Index

Example mBSA Plugin

The Example mBSA plugin provides public plugin interface (IExample) and an implementation to show how to get another mBSA plugin instance (ID_ICONFIGMANAGER) and use its public interface (IConfigManager).

Sources and Directory Structure

The sources of the Example mBSA Plugin are the following:

To build from the sources:

The most important headers in demo/include directory are:

Normally this method should be called only once, but in case the plugin was unloaded and later loaded back, the Core should call it more than once. This is the only method the plugin module exports.

Enabling Auto-Starting

To enable the auto-start of the Example plugin in mBSA:

  1. open mbsa/bin/configs/<platform>/mbsal.core.prs
  2. append mbsap.example in core.autostart.list property

Enabling Example Config

To enable the Example config in ConfigManager:

  1. Copy mbsa/demo/example/mbsap.example.prs in common configuration directory: mbsa/bin/configs/<platform>/
  2. Open mbsa/bin/configs/<platform>/mbsap.configmanager.prs
  3. Append the following lines at the end:

Example Plugin Log

The Example plugin logs in file: