From: Hwankyu Jhun Date: Tue, 9 Mar 2021 08:55:26 +0000 (+0900) Subject: Add AUL error code check X-Git-Tag: submit/tizen/20210310.072848~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3d38f13263f6eff73905383be0d74739fb1e92b9;p=platform%2Fcore%2Fapi%2Fcomponent-manager.git Add AUL error code check - Checks whether the error is AUL_R_ENOAPP or not. Requires: - https://review.tizen.org/gerrit/#/c/platform/core/appfw/amd/+/254134/ - https://review.tizen.org/gerrit/#/c/platform/core/appfw/aul-1/+/254251/ - https://review.tizen.org/gerrit/#/c/platform/core/api/component-manager/+/254796/ Change-Id: I636120e13803fa110a284e5f767c78f97149f314 Signed-off-by: Hwankyu Jhun --- diff --git a/src/component_info.c b/src/component_info.c index 984ca7d..e331303 100644 --- a/src/component_info.c +++ b/src/component_info.c @@ -47,7 +47,7 @@ int component_info_foreach(component_manager_component_info_cb callback, LOGE("Failed to retrieve component info. error(%d)", ret); if (ret == AUL_R_EILLACC) return COMPONENT_MANAGER_ERROR_PERMISSION_DENIED; - if (ret == AUL_R_ENOENT) + if (ret == AUL_R_ENOENT || ret == AUL_R_ENOAPP) return COMPONENT_MANAGER_ERROR_NO_SUCH_COMPONENT; if (ret == AUL_R_ENOMEM) return COMPONENT_MANAGER_ERROR_OUT_OF_MEMORY; @@ -74,7 +74,7 @@ EXPORT_API int component_info_create(const char *comp_id, LOGE("Failed to get component info. error(%d)", ret); if (ret == AUL_R_EILLACC) return COMPONENT_MANAGER_ERROR_PERMISSION_DENIED; - if (ret == AUL_R_ENOENT) + if (ret == AUL_R_ENOENT || ret == AUL_R_ENOAPP) return COMPONENT_MANAGER_ERROR_NO_SUCH_COMPONENT; return COMPONENT_MANAGER_ERROR_OUT_OF_MEMORY;