1 Star 0 Fork 4.9K

famoustang / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
pms_types-h.md 6.94 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

pms_types.h

Overview

Related Modules:

Pms_types

Description:

Declares variables and data structures used by the permission management module.

To use permission management APIs, you must obtain this file.

Since:

1.0

Version:

1.0

Summary

Data Structures

Data Structure Name

Description

PermissionSaved

Defines the permission, including the name, description, and whether the permission is granted.

Macros

Macro Name and Value

Description

PERM_NAME_LEN   64

Indicates the length of a permission name.

PERM_DESC_LEN   128

Indicates the length of a permission description.

Enumerations

Enumeration Name

Description

IsGranted { , GRANTED = 1 }

Enumerates granting statuses of the permission.

PmsErrorCode { ,   PERM_ERRORCODE_INVALID_PARAMS = 10, PERM_ERRORCODE_INVALID_PERMNAME, PERM_ERRORCODE_MALLOC_FAIL, PERM_ERRORCODE_OPENFD_FAIL,   PERM_ERRORCODE_READFD_FAIL, PERM_ERRORCODE_WRITEFD_FAIL, PERM_ERRORCODE_JSONPARSE_FAIL, PERM_ERRORCODE_COPY_ERROR,   PERM_ERRORCODE_FIELD_TOO_LONG, PERM_ERRORCODE_PERM_NOT_EXIST, PERM_ERRORCODE_UNLINK_ERROR, PERM_ERRORCODE_FILE_NOT_EXIST,   PERM_ERRORCODE_MEMSET_FAIL, PERM_ERRORCODE_STAT_FAIL, PERM_ERRORCODE_PATH_INVALID, PERM_ERRORCODE_TOO_MUCH_PERM,   PERM_ERRORCODE_TASKID_NOT_EXIST, PERM_ERRORCODE_PERM_NUM_ERROR }

Enumerates error codes of the permission management module.

1
https://gitee.com/famoustang/docs.git
git@gitee.com:famoustang/docs.git
famoustang
docs
docs
master

搜索帮助