From a91f2fdc37fe952540b843183377c019a64657e2 Mon Sep 17 00:00:00 2001 From: Ilho Kim Date: Thu, 17 Apr 2025 21:54:34 +0900 Subject: [PATCH] Add res control's res type filter Change-Id: Ifbb0ba875f2c1587698616c0ebf4b0962694ccce Signed-off-by: Ilho Kim --- src/pkginfo/pkg_info.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/pkginfo/pkg_info.c b/src/pkginfo/pkg_info.c index dc653ef..417f776 100644 --- a/src/pkginfo/pkg_info.c +++ b/src/pkginfo/pkg_info.c @@ -391,6 +391,7 @@ static int __add_app_filter(uid_t uid) 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"); + printf("21 --> filter by app res type of res control\n"); choice = __get_integer_input_data(); switch (choice) { case 0: @@ -627,6 +628,18 @@ static int __add_app_filter(uid_t uid) free(value); value = NULL; break; + case 21: + value = __get_string_input_data(); + ret = pkgmgrinfo_appinfo_filter_add_string(handle, + PMINFO_APPINFO_PROP_RES_CONTROL_RES_TYPE, value); + if (ret < 0) { + printf("pkgmgrinfo_appinfo_filter_add_string() failed\n"); + ret = -1; + goto err; + } + free(value); + value = NULL; + break; default: printf("Invalid filter property\n"); -- 2.34.1