From: manoj Date: Thu, 25 Jul 2019 05:28:16 +0000 (+0530) Subject: [ITC][package-manager][ACR-1419][Deprecate and Add new enum for package_info_app_comp... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1dc1964e0e74627860d4ebbaec09e82b5ac4bedc;p=test%2Ftct%2Fnative%2Fapi.git [ITC][package-manager][ACR-1419][Deprecate and Add new enum for package_info_app_component_type_e] Change-Id: I38f13bc8e4c1b93c047b0229fb545c3b8cdc4dd8 Signed-off-by: manoj --- diff --git a/src/itc/package-manager/ITs-package-manager-common.c b/src/itc/package-manager/ITs-package-manager-common.c index 351223807..887483295 100755 --- a/src/itc/package-manager/ITs-package-manager-common.c +++ b/src/itc/package-manager/ITs-package-manager-common.c @@ -70,9 +70,9 @@ char* PackageManagerGetEnumForComponent(int nRet) char *szErrorVal = NULL; switch ( nRet ) { - case PACKAGE_INFO_ALLAPP: szErrorVal = "PACKAGE_INFO_ALLAPP"; break; - case PACKAGE_INFO_UIAPP: szErrorVal = "PACKAGE_INFO_UIAPP"; break; - case PACKAGE_INFO_SERVICEAPP: szErrorVal = "PACKAGE_INFO_SERVICEAPP"; break; + case PACKAGE_INFO_APP_COMPONENT_TYPE_ALL: szErrorVal = "PACKAGE_INFO_APP_COMPONENT_TYPE_ALL"; break; + case PACKAGE_INFO_APP_COMPONENT_TYPE_UI: szErrorVal = "PACKAGE_INFO_APP_COMPONENT_TYPE_UI"; break; + case PACKAGE_INFO_APP_COMPONENT_TYPE_SERVICE: szErrorVal = " PACKAGE_INFO_APP_COMPONENT_TYPE_SERVICE"; break; default: szErrorVal = "Unknown Info"; break; } return szErrorVal; diff --git a/src/itc/package-manager/ITs-package-manager-info.c b/src/itc/package-manager/ITs-package-manager-info.c index 74aad0521..c79a9b171 100755 --- a/src/itc/package-manager/ITs-package-manager-info.c +++ b/src/itc/package-manager/ITs-package-manager-info.c @@ -294,7 +294,7 @@ int ITc_package_info_foreach_app_from_package_p(void) CHECK_HANDLE(hPkgInfo, "package_manager_get_package_info"); // we do not have any service app available so not checking for PACKAGE_INFO_SERVICEAPP - package_info_app_component_type_e component_type[] = { PACKAGE_INFO_ALLAPP,PACKAGE_INFO_UIAPP}; + package_info_app_component_type_e component_type[] = { PACKAGE_INFO_APP_COMPONENT_TYPE_ALL, PACKAGE_INFO_APP_COMPONENT_TYPE_UI}; int nEnumSize = sizeof(component_type) / sizeof(component_type[0]); int nEnumCounter = 0;