add get support-mode info on pkginfo 28/157228/2 tizen_3.0
authorjunsuk77.oh <junsuk77.oh@samsung.com>
Tue, 24 Oct 2017 02:01:10 +0000 (11:01 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 22 Dec 2017 08:53:35 +0000 (08:53 +0000)
Change-Id: Ia397280a23110fbff30ac039f03eeb0d97baf1e1

src/pkg_info.c

index 8973bb651aee4c2a776d387839243cc77478fe3a..6a50d57077c04f090285167089f902875d726382 100644 (file)
@@ -1779,6 +1779,7 @@ static int __get_pkg_info(char *pkgid, uid_t uid)
 static int __get_app_info(char *appid)
 {
        int ret = -1;
+       int support_mode = 0;
        char *exec = NULL;
        char *app_id = NULL;
        char *apptype = NULL;
@@ -1869,6 +1870,10 @@ static int __get_app_info(char *appid)
        if (ret < 0)
                printf("Failed to get preload\n");
 
+       ret = pkgmgrinfo_appinfo_get_support_mode(handle, &support_mode);
+       if (ret < 0)
+               printf("Failed to get support_mode\n");
+
        if (app_id)
                printf("Appid: %s\n", app_id);
 
@@ -1911,6 +1916,7 @@ static int __get_app_info(char *appid)
 
        printf("Enabled: %d\n", enabled);
        printf("Preload: %d\n", preload);
+       printf("Support_mode: %d\n", support_mode);
 
        pkgmgrinfo_appinfo_destroy_appinfo(handle);