mirror of
https://github.com/openharmony/developtools_syscap_codec.git
synced 2026-08-27 02:11:19 -04:00
!55 syscap_tool 添加字符串格式 pcid 和 rpcid 的比较。
Merge pull request !55 from chenyude/rpcid
This commit is contained in:
@@ -31,6 +31,14 @@ typedef struct ProductCompatibilityID {
|
||||
uint8_t osSyscap[MAX_OS_SYSCAP_NUM / 8];
|
||||
} PCIDMain;
|
||||
|
||||
typedef struct pcidHeader {
|
||||
uint16_t apiVersion : 15;
|
||||
uint16_t apiVersionType : 1;
|
||||
uint16_t systemType : 3;
|
||||
uint16_t reserved : 13;
|
||||
uint32_t manufacturerID;
|
||||
} PCIDHeader;
|
||||
|
||||
int32_t CreatePCID(char *inputFile, char *outDirPath);
|
||||
int32_t DecodePCID(char *inputFile, char *outDirPath);
|
||||
int32_t DecodeStringPCID(char *input, char *outDirPath, int type);
|
||||
|
||||
@@ -34,6 +34,8 @@ int32_t RPCIDEncode(char *inputFile, char *outputPath);
|
||||
int32_t RPCIDDecode(char *inputFile, char *outputPath);
|
||||
/* in: inputFile, out: outputPath/rpcid.json */
|
||||
int32_t DecodeRpcidToString(char *inputFile, char *outDirPath);
|
||||
/* in: pcidFile, rpcidFile */
|
||||
int32_t ComparePcidWithRpcidString(char *pcidFile, char *rpcidFile);
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user