[ITC][package-manager][ACR-1419][Deprecate and Add new enum for package_info_app_comp... 19/210819/4
authormanoj <manoj.g2@samsung.com>
Thu, 25 Jul 2019 05:28:16 +0000 (10:58 +0530)
committershobhit verma <shobhit.v@samsung.com>
Thu, 25 Jul 2019 07:17:40 +0000 (07:17 +0000)
Change-Id: I38f13bc8e4c1b93c047b0229fb545c3b8cdc4dd8
Signed-off-by: manoj <manoj.g2@samsung.com>
src/itc/package-manager/ITs-package-manager-common.c
src/itc/package-manager/ITs-package-manager-info.c

index 3512238073981a557af78de863ed1b5e161890cc..887483295feaca6548cc651940f8bcf5a80deccf 100755 (executable)
@@ -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;
index 74aad052170808ac13430a51bca5c87456a2eb2b..c79a9b17142374ea6ea12827c1c0b5e4c3443605 100755 (executable)
@@ -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;