From efb3d3de0fc42571a2eeb1a95c5d4cff03bfd83f Mon Sep 17 00:00:00 2001 From: Chanwoo Choi Date: Fri, 22 Jul 2022 13:59:21 +0900 Subject: [PATCH] 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 --- src/pass/pass-parser.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 { -- 2.34.1