From: Chanwoo Choi Date: Fri, 22 Jul 2022 04:59:21 +0000 (+0900) Subject: pass: parser: Parse new resource type for display/disk/network X-Git-Tag: submit/tizen/20220802.012548~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=efb3d3de0fc42571a2eeb1a95c5d4cff03bfd83f;p=platform%2Fcore%2Fsystem%2Fpass.git 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 --- 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 {