diff --git a/README.md b/README.md index 47a66802cc553fe72252d1f971653a20b458e5e1..8e18558fc02266f896a59aa846799362ac20d9f5 100644 --- a/README.md +++ b/README.md @@ -1,36 +1,34 @@ -# safwk\_lite +# safwk_lite -- [Introduction](#section11660541593) -- [Directory Structure](#section1464106163817) -- [Usage](#section10729231131110) -- [Repositories Involved](#section176111311166) +## Introduction -## Introduction +The Lite System Ability Framework (safwk_lite) component provides an empty process for running basic services. -The **safwk\_lite** module provides an empty process for running basic services. +## System Architecture -## Directory Structure +Figure 1 Service-oriented architecture -The following table describes the directory structure of the Distributed Scheduler. -**Table 1** Directory structure of the major source code +![](figures/en-us_image_0000001128146921.png) - - - - - - - - - -

Directory

-

Description

-

safwk_lite

-

Implementation of the foundation process

-
+- Provider: a service provider that provides capabilities (external APIs) for the system. +- Consumer: a service consumer that invokes the features (external APIs) provided by the service. +- Samgr: an agency that manages capabilities provided by providers and helps consumers discover providers' capabilities. -The source code directory structure of the **safwk\_lite** module is as follows: + +## Directory Structure + +The following table describes the directory structure of the safwk_lite source code. + +**Table 1** Directory structure of the major source code + +| Name | Description | +| ------------------------------------------------------------ | -------------------------------------- | +| safwk_lite | Implementation of the foundation process. | +| bool Publish(sptr\ systemAbility); | Publishes a system ability. | +| virtual void DoStartSAProcess(const std::string& profilePath) = 0; | Enables a system ability based on its profile.| + +The source code directory structure of the safwk\_lite component is as follows: ``` ├── BUILD.gn @@ -40,11 +38,11 @@ The source code directory structure of the **safwk\_lite** module is as follow └── main.c ``` -## Usage +## Usage Add a service to the foundation process. -After writing the service based on the service template, add the dependencies to the **BUILD.gn** file. +After writing the service information based on the service template, add the dependencies to the **BUILD.gn** file. ``` deps = [ @@ -58,9 +56,9 @@ deps = [ ] ``` -## Repositories Involved +## Repositories Involved -System Ability Management Subsystem +Samgr [systemabilitymgr\_samgr\_lite](https://gitee.com/openharmony/systemabilitymgr_samgr_lite) @@ -69,4 +67,3 @@ System Ability Management Subsystem [systemabilitymgr\_safwk](https://gitee.com/openharmony/systemabilitymgr_safwk) [**systemabilitymgr\_safwk\_lite**](https://gitee.com/openharmony/systemabilitymgr_safwk_lite) -