Package Manager API
1.0 References[1] Software Architecture Document, Version 1.1 Revision 1.4, LiMo Foundation, 11 September 20072.0 Overview2.1 PM Plug-inThe package manager (PM) is a standalone, command line LiMo application/process. It is for:
Figure 1: Package Manager Architecture PM interacts with plug-ins to accomplish tasks. Figure 1 shows a high level architecture of PM.
2.2 PM WorkflowFigure 2 shows how to invoke plug-ins.
Figure 2: PM Plug-in Invocation Workflow Figure 3 shows the workflow of PM.
Figure 3: PM Workflow 2.3 Plug-in Invocation Order and Plugin.confWhen PM starts, it loads all plug-ins and calls PM_PluginInit on all plug-ins if present. Before PM exits, it call PM_PluginExit on all plug-ins. Each plug-in can publish a startup event and an end event through these two interfaces, and in PM_PluginInit, it can create a thread to check PM_RuntimeInfo::progress and publish progress event accordingly.Plugin.conf lists the locations of plug-ins for each function. PM invokes the plug-ins in the same order as they listed in this file. If one of the plug-in fails, compensatory function is called on the plug-ins that has been invoked for rollback. The compensatory order is first invoked, last compensated. See plugin.conf, virusscan.c, mainmenu.c, scripting.c for code samples. 3.0 Industry StandardNone4.0 External API DocumentsNone5.0 Plug-in Extension Point InterfaceNone6.0 Other InterfacesNone7.0 Other NotesNoneGenerated on Mon Mar 31 01:01:00 2008 by
1.5.4
|