From 897d1177c24e5b4a1a128787ceb310a8c948da26 Mon Sep 17 00:00:00 2001 From: chensihan Date: Mon, 24 Mar 2025 15:10:35 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=8F=8F=E8=BF=B0?= =?UTF-8?q?=E7=BB=9F=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chensihan --- filemanagement/file_uri/include/oh_file_uri.h | 4 ++-- filemanagement/fileshare/include/oh_file_share.h | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/filemanagement/file_uri/include/oh_file_uri.h b/filemanagement/file_uri/include/oh_file_uri.h index dde24336d..c756f829b 100644 --- a/filemanagement/file_uri/include/oh_file_uri.h +++ b/filemanagement/file_uri/include/oh_file_uri.h @@ -19,7 +19,7 @@ * * @brief This module provides URI format validation and URI conversion processing, * as well as obtaining URI-related information - * + * @syscap SystemCapability.FileManagement.AppFileService * @since 12 */ @@ -90,7 +90,7 @@ FileManagement_ErrCode OH_FileUri_GetPathFromUri(const char *uri, unsigned int l * {@link ERR_PARAMS} 401 - Invalid input parameter. * {@link ERR_ENOMEM} 13900011 - Failed to apply for memory or failed to copy memory. * {@link ERR_ENOENT} 13900002 - No such file or directory. - * {@link ERR_UNKNOWN} - Unknow error. The length of the output path string is 0. + * {@link ERR_UNKNOWN} 13900042 - Unknow error. The length of the output path string is 0. * {@link ERR_OK} 0 - This operation was successfully executed. * @syscap SystemCapability.FileManagement.AppFileService * @since 12 diff --git a/filemanagement/fileshare/include/oh_file_share.h b/filemanagement/fileshare/include/oh_file_share.h index fc89f08ed..4d22a7caf 100644 --- a/filemanagement/fileshare/include/oh_file_share.h +++ b/filemanagement/fileshare/include/oh_file_share.h @@ -151,6 +151,7 @@ typedef struct FileShare_PolicyInfo { * {@link E_PERMISSION} 201 - No permission to perform this operation. * {@link E_EPERM} 13900001 - operation not permitted. * {@link E_ENOMEM} 13900011 - Failed to apply for memory or failed to copy memory. + * {@link E_UNKNOWN_ERROR} 13900042 - Unknown error. * {@link E_NO_ERROR} 0 - This operation was successfully executed. * @since 12 */ @@ -197,6 +198,7 @@ FileManagement_ErrCode OH_FileShare_RevokePermission(const FileShare_PolicyInfo * {@link E_PERMISSION} 201 - No permission to perform this operation. * {@link E_EPERM} 13900001 - operation not permitted. * {@link E_ENOMEM} 13900011 - Failed to apply for memory or failed to copy memory. + * {@link E_UNKNOWN_ERROR} 13900042 - Unknown error. * {@link E_NO_ERROR} 0 - This operation was successfully executed. * @since 12 */ @@ -220,6 +222,7 @@ FileManagement_ErrCode OH_FileShare_ActivatePermission(const FileShare_PolicyInf * {@link E_PERMISSION} 201 - No permission to perform this operation. * {@link E_EPERM} 13900001 - operation not permitted. * {@link E_ENOMEM} 13900011 - Failed to apply for memory or failed to copy memory. + * {@link E_UNKNOWN_ERROR} 13900042 - Unknown error. * {@link E_NO_ERROR} 0 - This operation was successfully executed. * @since 12 */ @@ -242,6 +245,7 @@ FileManagement_ErrCode OH_FileShare_DeactivatePermission(const FileShare_PolicyI * {@link E_PERMISSION} 201 - No permission to perform this operation. * {@link E_EPERM} 13900001 - operation not permitted. * {@link E_ENOMEM} 13900011 - Failed to apply for memory or failed to copy memory. + * {@link E_UNKNOWN_ERROR} 13900042 - Unknown error. * {@link E_NO_ERROR} 0 - This operation was successfully executed. * @since 12 */ -- Gitee From 8b6c03b9a4fa0ce92f3f83147c5ff8ffa17937c9 Mon Sep 17 00:00:00 2001 From: chensihan Date: Mon, 24 Mar 2025 15:10:35 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=8F=8F=E8=BF=B0?= =?UTF-8?q?=E7=BB=9F=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chensihan --- filemanagement/file_uri/include/oh_file_uri.h | 6 +++--- filemanagement/fileshare/include/oh_file_share.h | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/filemanagement/file_uri/include/oh_file_uri.h b/filemanagement/file_uri/include/oh_file_uri.h index dde24336d..8eba532f2 100644 --- a/filemanagement/file_uri/include/oh_file_uri.h +++ b/filemanagement/file_uri/include/oh_file_uri.h @@ -19,7 +19,7 @@ * * @brief This module provides URI format validation and URI conversion processing, * as well as obtaining URI-related information - * + * @syscap SystemCapability.FileManagement.AppFileService * @since 12 */ @@ -40,7 +40,7 @@ #ifndef FILE_MANAGEMENT_OH_FILE_URI_H #define FILE_MANAGEMENT_OH_FILE_URI_H -#include "error_code.h" +#include "../fileio/error_code.h" #include #include #include @@ -90,7 +90,7 @@ FileManagement_ErrCode OH_FileUri_GetPathFromUri(const char *uri, unsigned int l * {@link ERR_PARAMS} 401 - Invalid input parameter. * {@link ERR_ENOMEM} 13900011 - Failed to apply for memory or failed to copy memory. * {@link ERR_ENOENT} 13900002 - No such file or directory. - * {@link ERR_UNKNOWN} - Unknow error. The length of the output path string is 0. + * {@link ERR_UNKNOWN} 13900042 - Unknow error. The length of the output path string is 0. * {@link ERR_OK} 0 - This operation was successfully executed. * @syscap SystemCapability.FileManagement.AppFileService * @since 12 diff --git a/filemanagement/fileshare/include/oh_file_share.h b/filemanagement/fileshare/include/oh_file_share.h index fc89f08ed..a7b7e90cd 100644 --- a/filemanagement/fileshare/include/oh_file_share.h +++ b/filemanagement/fileshare/include/oh_file_share.h @@ -36,7 +36,7 @@ #ifndef FILE_MANAGEMENT_OH_FILE_SHARE_H #define FILE_MANAGEMENT_OH_FILE_SHARE_H -#include "error_code.h" +#include "../fileio/error_code.h" #include #ifdef __cplusplus @@ -151,6 +151,7 @@ typedef struct FileShare_PolicyInfo { * {@link E_PERMISSION} 201 - No permission to perform this operation. * {@link E_EPERM} 13900001 - operation not permitted. * {@link E_ENOMEM} 13900011 - Failed to apply for memory or failed to copy memory. + * {@link E_UNKNOWN_ERROR} 13900042 - Unknown error. * {@link E_NO_ERROR} 0 - This operation was successfully executed. * @since 12 */ @@ -197,6 +198,7 @@ FileManagement_ErrCode OH_FileShare_RevokePermission(const FileShare_PolicyInfo * {@link E_PERMISSION} 201 - No permission to perform this operation. * {@link E_EPERM} 13900001 - operation not permitted. * {@link E_ENOMEM} 13900011 - Failed to apply for memory or failed to copy memory. + * {@link E_UNKNOWN_ERROR} 13900042 - Unknown error. * {@link E_NO_ERROR} 0 - This operation was successfully executed. * @since 12 */ @@ -220,6 +222,7 @@ FileManagement_ErrCode OH_FileShare_ActivatePermission(const FileShare_PolicyInf * {@link E_PERMISSION} 201 - No permission to perform this operation. * {@link E_EPERM} 13900001 - operation not permitted. * {@link E_ENOMEM} 13900011 - Failed to apply for memory or failed to copy memory. + * {@link E_UNKNOWN_ERROR} 13900042 - Unknown error. * {@link E_NO_ERROR} 0 - This operation was successfully executed. * @since 12 */ @@ -242,6 +245,7 @@ FileManagement_ErrCode OH_FileShare_DeactivatePermission(const FileShare_PolicyI * {@link E_PERMISSION} 201 - No permission to perform this operation. * {@link E_EPERM} 13900001 - operation not permitted. * {@link E_ENOMEM} 13900011 - Failed to apply for memory or failed to copy memory. + * {@link E_UNKNOWN_ERROR} 13900042 - Unknown error. * {@link E_NO_ERROR} 0 - This operation was successfully executed. * @since 12 */ -- Gitee