Add AUL error code check 96/254796/2
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 9 Mar 2021 08:55:26 +0000 (17:55 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 9 Mar 2021 09:31:46 +0000 (18:31 +0900)
- 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 <h.jhun@samsung.com>
src/component_info.c

index 984ca7d6198ab3579408201b6685b6995948c1a3..e33130352bb37be95121b65d775287e963eebd03 100644 (file)
@@ -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;