Add package_app_info.app_installed_storage filter at pkg_info 01/84501/3 accepted/tizen/common/20160829.140010 accepted/tizen/common/20160830.150136 accepted/tizen/ivi/20160830.061209 accepted/tizen/mobile/20160830.060932 accepted/tizen/tv/20160830.061037 accepted/tizen/wearable/20160830.061124 submit/tizen/20160829.010716 submit/tizen/20160830.010724
authorJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 19 Aug 2016 05:03:21 +0000 (14:03 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Thu, 25 Aug 2016 06:51:07 +0000 (23:51 -0700)
Change-Id: I0abcba105bc5ef87f6c70599b0e33a424fa5e68d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/pkg_info.c

index 0f2c12f..b28e9e8 100644 (file)
@@ -389,6 +389,7 @@ static int __add_app_filter(uid_t uid)
                printf("17 --> filter by app screenreader\n");
                printf("18 --> filter by app ui-gadget [0|1]\n");
                printf("19 --> filter by app support disable [0|1]\n");
+               printf("20 --> filter by app installed storage\n");
                choice = __get_integer_input_data();
                switch (choice) {
                case 0:
@@ -613,6 +614,17 @@ static int __add_app_filter(uid_t uid)
                                goto err;
                        }
                        break;
+               case 20:
+                       value = __get_string_input_data();
+                       ret = pkgmgrinfo_appinfo_filter_add_string(handle,
+                                       PMINFO_APPINFO_PROP_APP_INSTALLED_STORAGE, value);
+                       if (ret < 0) {
+                               printf("pkgmgrinfo_appinfo_filter_add_string() failed\n");
+                               ret = -1;
+                               goto err;
+                       }
+                       break;
+
                default:
                        printf("Invalid filter property\n");
                        ret = -1;