mirror of
https://gitee.com/openharmony/interface_sdk_c
synced 2024-11-23 06:39:54 +00:00
update api
Signed-off-by: 王永忠 <wangyongzhong2@huawei.com>
This commit is contained in:
parent
0ce7c01e59
commit
40db0c8517
@ -19,7 +19,7 @@
|
|||||||
*
|
*
|
||||||
* @brief Provides the capability to access the data loss prevention (DLP) files.
|
* @brief Provides the capability to access the data loss prevention (DLP) files.
|
||||||
*
|
*
|
||||||
* @since 13
|
* @since 14
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -30,7 +30,7 @@
|
|||||||
* @library libohdlp_permission.so
|
* @library libohdlp_permission.so
|
||||||
* @kit DataProtectionKit
|
* @kit DataProtectionKit
|
||||||
* @syscap SystemCapability.Security.DataLossPrevention
|
* @syscap SystemCapability.Security.DataLossPrevention
|
||||||
* @since 13
|
* @since 14
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DLP_PERMISSION_API_H
|
#ifndef DLP_PERMISSION_API_H
|
||||||
@ -46,7 +46,7 @@ extern "C" {
|
|||||||
/**
|
/**
|
||||||
* @brief Enumerates the error codes.
|
* @brief Enumerates the error codes.
|
||||||
*
|
*
|
||||||
* @since 13
|
* @since 14
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
/** @error The operation is successful. */
|
/** @error The operation is successful. */
|
||||||
@ -68,7 +68,7 @@ typedef enum {
|
|||||||
/**
|
/**
|
||||||
* @brief Enumerates the access permissions for a DLP file.
|
* @brief Enumerates the access permissions for a DLP file.
|
||||||
*
|
*
|
||||||
* @since 13
|
* @since 14
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
/** No permission. */
|
/** No permission. */
|
||||||
@ -93,7 +93,7 @@ typedef enum {
|
|||||||
* {@link DLP_ErrCode#ERR_OH_SYSTEM_SERVICE_EXCEPTION} 19100011 - If the system ability
|
* {@link DLP_ErrCode#ERR_OH_SYSTEM_SERVICE_EXCEPTION} 19100011 - If the system ability
|
||||||
* works abnormally.
|
* works abnormally.
|
||||||
* {@link DLP_ErrCode#ERR_OH_OUT_OF_MEMORY} 19100012 - If the memory error.
|
* {@link DLP_ErrCode#ERR_OH_OUT_OF_MEMORY} 19100012 - If the memory error.
|
||||||
* @since 13
|
* @since 14
|
||||||
*/
|
*/
|
||||||
DLP_ErrCode OH_DLP_GetDlpPermissionInfo(DLP_FileAccess *dlpFileAccess, uint32_t *flags);
|
DLP_ErrCode OH_DLP_GetDlpPermissionInfo(DLP_FileAccess *dlpFileAccess, uint32_t *flags);
|
||||||
|
|
||||||
@ -106,7 +106,7 @@ DLP_ErrCode OH_DLP_GetDlpPermissionInfo(DLP_FileAccess *dlpFileAccess, uint32_t
|
|||||||
* @return {@link DLP_ErrCode#ERR_OH_SUCCESS} 0 - If the operation is successful.
|
* @return {@link DLP_ErrCode#ERR_OH_SUCCESS} 0 - If the operation is successful.
|
||||||
* {@link DLP_ErrCode#ERR_OH_INVALID_PARAMS} 19100001 - If the parameter value is invalid.
|
* {@link DLP_ErrCode#ERR_OH_INVALID_PARAMS} 19100001 - If the parameter value is invalid.
|
||||||
* {@link DLP_ErrCode#ERR_OH_OUT_OF_MEMORY} 19100012 - If the memory error.
|
* {@link DLP_ErrCode#ERR_OH_OUT_OF_MEMORY} 19100012 - If the memory error.
|
||||||
* @since 13
|
* @since 14
|
||||||
*/
|
*/
|
||||||
DLP_ErrCode OH_DLP_GetOriginalFileName(const char *fileName, char **originalFileName);
|
DLP_ErrCode OH_DLP_GetOriginalFileName(const char *fileName, char **originalFileName);
|
||||||
|
|
||||||
@ -119,7 +119,7 @@ DLP_ErrCode OH_DLP_GetOriginalFileName(const char *fileName, char **originalFile
|
|||||||
* {@link DLP_ErrCode#ERR_OH_SYSTEM_SERVICE_EXCEPTION} 19100011 - If the system ability
|
* {@link DLP_ErrCode#ERR_OH_SYSTEM_SERVICE_EXCEPTION} 19100011 - If the system ability
|
||||||
* works abnormally.
|
* works abnormally.
|
||||||
* {@link DLP_ErrCode#ERR_OH_OUT_OF_MEMORY} 19100012 - If the memory error.
|
* {@link DLP_ErrCode#ERR_OH_OUT_OF_MEMORY} 19100012 - If the memory error.
|
||||||
* @since 13
|
* @since 14
|
||||||
*/
|
*/
|
||||||
DLP_ErrCode OH_DLP_IsInSandbox(bool *isInSandbox);
|
DLP_ErrCode OH_DLP_IsInSandbox(bool *isInSandbox);
|
||||||
|
|
||||||
@ -134,7 +134,7 @@ DLP_ErrCode OH_DLP_IsInSandbox(bool *isInSandbox);
|
|||||||
* {@link DLP_ErrCode#ERR_OH_SYSTEM_SERVICE_EXCEPTION} 19100011 - If the system ability
|
* {@link DLP_ErrCode#ERR_OH_SYSTEM_SERVICE_EXCEPTION} 19100011 - If the system ability
|
||||||
* works abnormally.
|
* works abnormally.
|
||||||
* {@link DLP_ErrCode#ERR_OH_APPLICATION_NOT_AUTHORIZED} 19100018 - If not authorized application.
|
* {@link DLP_ErrCode#ERR_OH_APPLICATION_NOT_AUTHORIZED} 19100018 - If not authorized application.
|
||||||
* @since 13
|
* @since 14
|
||||||
*/
|
*/
|
||||||
DLP_ErrCode OH_DLP_SetSandboxAppConfig(const char *configInfo);
|
DLP_ErrCode OH_DLP_SetSandboxAppConfig(const char *configInfo);
|
||||||
|
|
||||||
@ -147,7 +147,7 @@ DLP_ErrCode OH_DLP_SetSandboxAppConfig(const char *configInfo);
|
|||||||
* works abnormally.
|
* works abnormally.
|
||||||
* {@link DLP_ErrCode#ERR_OH_OUT_OF_MEMORY} 19100012 - If the memory error.
|
* {@link DLP_ErrCode#ERR_OH_OUT_OF_MEMORY} 19100012 - If the memory error.
|
||||||
* {@link DLP_ErrCode#ERR_OH_APPLICATION_NOT_AUTHORIZED} 19100018 - If not authorized application.
|
* {@link DLP_ErrCode#ERR_OH_APPLICATION_NOT_AUTHORIZED} 19100018 - If not authorized application.
|
||||||
* @since 13
|
* @since 14
|
||||||
*/
|
*/
|
||||||
DLP_ErrCode OH_DLP_GetSandboxAppConfig(char **configInfo);
|
DLP_ErrCode OH_DLP_GetSandboxAppConfig(char **configInfo);
|
||||||
|
|
||||||
@ -160,7 +160,7 @@ DLP_ErrCode OH_DLP_GetSandboxAppConfig(char **configInfo);
|
|||||||
* {@link DLP_ErrCode#ERR_OH_SYSTEM_SERVICE_EXCEPTION} 19100011 - If the system ability
|
* {@link DLP_ErrCode#ERR_OH_SYSTEM_SERVICE_EXCEPTION} 19100011 - If the system ability
|
||||||
* works abnormally.
|
* works abnormally.
|
||||||
* {@link DLP_ErrCode#ERR_OH_APPLICATION_NOT_AUTHORIZED} 19100018 - If not authorized application.
|
* {@link DLP_ErrCode#ERR_OH_APPLICATION_NOT_AUTHORIZED} 19100018 - If not authorized application.
|
||||||
* @since 13
|
* @since 14
|
||||||
*/
|
*/
|
||||||
DLP_ErrCode OH_DLP_CleanSandboxAppConfig();
|
DLP_ErrCode OH_DLP_CleanSandboxAppConfig();
|
||||||
|
|
||||||
|
@ -1,26 +1,26 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"first_introduced": "13",
|
"first_introduced": "14",
|
||||||
"name": "OH_DLP_GetDlpPermissionInfo"
|
"name": "OH_DLP_GetDlpPermissionInfo"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"first_introduced": "13",
|
"first_introduced": "14",
|
||||||
"name": "OH_DLP_GetOriginalFileName"
|
"name": "OH_DLP_GetOriginalFileName"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"first_introduced": "13",
|
"first_introduced": "14",
|
||||||
"name": "OH_DLP_IsInSandbox"
|
"name": "OH_DLP_IsInSandbox"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"first_introduced": "13",
|
"first_introduced": "14",
|
||||||
"name": "OH_DLP_SetSandboxAppConfig"
|
"name": "OH_DLP_SetSandboxAppConfig"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"first_introduced": "13",
|
"first_introduced": "14",
|
||||||
"name": "OH_DLP_GetSandboxAppConfig"
|
"name": "OH_DLP_GetSandboxAppConfig"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"first_introduced": "13",
|
"first_introduced": "14",
|
||||||
"name": "OH_DLP_CleanSandboxAppConfig"
|
"name": "OH_DLP_CleanSandboxAppConfig"
|
||||||
}
|
}
|
||||||
]
|
]
|
Loading…
Reference in New Issue
Block a user