asset_api.h
概述
声明用于访问关键资产的接口。
库: libasset_ndk.z.so
系统能力: SystemCapability.Security.Asset
起始版本: 11
相关模块:AssetApi
汇总
函数
名称 | 描述 |
---|---|
int32_t OH_Asset_Add (const Asset_Attr *attributes, uint32_t attrCnt) | 新增一条关键资产。 |
int32_t OH_Asset_Remove (const Asset_Attr *query, uint32_t queryCnt) | 删除符合条件的一条或多条关键资产。 |
int32_t OH_Asset_Update (const Asset_Attr *query, uint32_t queryCnt, const Asset_Attr *attributesToUpdate, uint32_t updateCnt) | 更新符合条件的一条关键资产。 |
int32_t OH_Asset_PreQuery (const Asset_Attr *query, uint32_t queryCnt, Asset_Blob *challenge) | 查询的预处理,用于需要用户认证的关键资产。 |
int32_t OH_Asset_Query (const Asset_Attr *query, uint32_t queryCnt, Asset_ResultSet *resultSet) | 查询一条或多条符合条件的关键资产。 |
int32_t OH_Asset_PostQuery (const Asset_Attr *handle, uint32_t handleCnt) | 查询的后置处理,用于需要用户认证的关键资产。 |
Asset_Attr * OH_Asset_ParseAttr (const Asset_Result *result, Asset_Tag tag) | 解析查询结果,并获取指定的属性值。 |
void OH_Asset_FreeBlob (Asset_Blob *blob) | 释放挑战值所占用的内存。 |
void OH_Asset_FreeResultSet (Asset_ResultSet *resultSet) | 释放查询结果所占用的内存。 |