From 4279d0c6f52416280324a7a4d812b4058eff1dea Mon Sep 17 00:00:00 2001 From: lizhuojun Date: Mon, 22 Jul 2024 10:45:04 +0800 Subject: [PATCH] modify udmf ndk build and errorcode Signed-off-by: lizhuojun --- distributeddatamgr/udmf/BUILD.gn | 1 + distributeddatamgr/udmf/include/udmf_err_code.h | 10 +--------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/distributeddatamgr/udmf/BUILD.gn b/distributeddatamgr/udmf/BUILD.gn index b4e619bcf..9dc8f7a62 100644 --- a/distributeddatamgr/udmf/BUILD.gn +++ b/distributeddatamgr/udmf/BUILD.gn @@ -28,6 +28,7 @@ ohos_ndk_headers("udmf_ndk_header") { ohos_ndk_library("libudmf") { output_name = "udmf" + output_extension = "so" system_capability = "SystemCapability.DistributedDataManager.UDMF.Core" ndk_description_file = "./libudmf.ndk.json" min_compact_version = "12" diff --git a/distributeddatamgr/udmf/include/udmf_err_code.h b/distributeddatamgr/udmf/include/udmf_err_code.h index 4a479bdc6..105191c7c 100644 --- a/distributeddatamgr/udmf/include/udmf_err_code.h +++ b/distributeddatamgr/udmf/include/udmf_err_code.h @@ -56,22 +56,14 @@ typedef enum Udmf_ErrCode { * The error code in the correct case. */ UDMF_E_OK = 0, - /** - * @brief The error when the capability not supported. - */ - UDMF_E_NOT_SUPPORTED = 801, /** * @brief The error code for common exceptions. */ UDMF_ERR = 20400000, - /** - * @brief The error code for not support this data parse exceptions. - */ - UDMF_E_NOT_PARSE_DATA = (UDMF_ERR + 1), /** * @brief The error code for common invalid args. */ - UDMF_E_INVALID_PARAM = (UDMF_ERR + 2), + UDMF_E_INVALID_PARAM = (UDMF_ERR + 1), } Udmf_ErrCode; #ifdef __cplusplus -- Gitee