service.h

Overview

Related Modules:

Samgr

Description:

Provides basic types and constants of services.

This file is mainly used for service development. This file provides basic capabilities such as lifecycle functions of services, inherited macros, and task configuration.

Since:

1.0

Version:

1.0

Summary

Data Structures

Data Structure Name

Description

TaskConfig

Defines task configurations for a service.

Service

Indicates the basic type of a service.

Macros

Macro Name and Value

Description

INHERIT_SERVICE

Indicates the macro used to inherit the members from the service class.

Typedefs

Typedef Name

Description

TaskType

typedef enum TaskType 

Enumerates task types.

SpecifyTag

typedef enum SpecifyTag 

Specifies the tag for the task shared by multiple services.

TaskPriority

typedef enum TaskPriority 

Enumerates task priority.

Enumerations

Enumeration Name

Description

TaskType { SHARED_TASK = 0, SINGLE_TASK = 1, SPECIFIED_TASK = 2, NO_TASK = 0xFF }

Enumerates task types.

SpecifyTag { LEVEL_HIGH = 0, LEVEL_MIDDLE = 1, LEVEL_LOW = 2, LEVEL_CUSTOM_BEGIN }

Specifies the tag for the task shared by multiple services.

TaskPriority {   PRI_LOW = 9, PRI_BELOW_NORMAL = 16, PRI_NORMAL = 24, PRI_ABOVE_NORMAL = 32,   PRI_BUTT = 39 }

Enumerates task priority.