CfgMgr::GetAllSnapshot

Description

Obtains the names of all snapshot files and the corresponding startup description files (version numbers).

Prototype

uint32_t CfgMgr::GetAllSnapshot(std::vector<std::pair<std::string, string>> &allSnapshot)

Function Security Level

ASIL-D

Parameters

Parameter

Input/Output

Description

allSnapshot

Output

Names of all snapshot files and the corresponding startup description files (version numbers)

Returns

The return value is of the uint32_t type. If the operation is successful, CFGMGR_SUCCESS is returned. If the operation fails, an error code is returned.

Usage

After SELinux permission control is enabled, non-privileged processes can be called only after the read and write permissions on dp:/res/cfgmgr/mgmt are configured.

Precautions

None