summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2022-07-22 13:59:21 +0900
committerChanwoo Choi <cw00.choi@samsung.com>2022-07-27 17:26:18 +0900
commitefb3d3de0fc42571a2eeb1a95c5d4cff03bfd83f (patch)
treeaf57b806b5913b56645bb2615249474ad6cf7ed8
parente2c95b796351e8c44ac3bc10c0daeeb329b5aa2d (diff)
downloadpass-efb3d3de0fc42571a2eeb1a95c5d4cff03bfd83f.tar.gz
pass-efb3d3de0fc42571a2eeb1a95c5d4cff03bfd83f.tar.bz2
pass-efb3d3de0fc42571a2eeb1a95c5d4cff03bfd83f.zip
pass: parser: Parse new resource type for display/disk/network
Parse new resource type for display/disk/network. Change-Id: Id5c1a110aa22a825e2f0d0bbcff99707032f2bed Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
-rw-r--r--src/pass/pass-parser.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pass/pass-parser.c b/src/pass/pass-parser.c
index d268050..0c6d4d3 100644
--- a/src/pass/pass-parser.c
+++ b/src/pass/pass-parser.c
@@ -866,6 +866,12 @@ static int parse_resource_data(struct pass *pass, int id, json_object *obj)
config_data->res_type = PASS_RESOURCE_MEMORY_ID;
else if (!strncmp(device_type, PASS_RESOURCE_BATTERY_NAME, strlen(device_type)))
config_data->res_type = PASS_RESOURCE_BATTERY_ID;
+ else if (!strncmp(device_type, PASS_RESOURCE_DISPLAY_NAME, strlen(device_type)))
+ config_data->res_type = PASS_RESOURCE_DISPLAY_ID;
+ else if (!strncmp(device_type, PASS_RESOURCE_DISK_NAME, strlen(device_type)))
+ config_data->res_type = PASS_RESOURCE_DISK_ID;
+ else if (!strncmp(device_type, PASS_RESOURCE_NETWORK_NAME, strlen(device_type)))
+ config_data->res_type = PASS_RESOURCE_NETWORK_ID;
else if (!strncmp(device_type, PASS_RESOURCE_NONSTANDARD_NAME, strlen(device_type)))
config_data->res_type = PASS_RESOURCE_NONSTANDARD_ID;
else {