From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web10.8350.1657628510745053735 for ; Tue, 12 Jul 2022 05:21:50 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=hGFwGldz; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=0192e24d61=nickle.wang@hpe.com) Received: from pps.filterd (m0150241.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 26CAoX0q001900; Tue, 12 Jul 2022 12:21:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pps0720; bh=19fih5WgRD/p/I8j1wHXn64EW+pmqN8Rmj3Ly1ubDz0=; b=hGFwGldzzXEHxJ/lFEFxbMKLkJA7auP7w6YNCliRMXQm0JE531iMY3GPypi29SRZDSzR 4X/tSI+Yisgln+G1RljaEtVIL+Ysfe7vv9Ov1xb2EDNJRw2DFN23WY3jRuuorbypmh59 LIFFjIK52aGuCQooDKj/FtdAQF5alBBkbCu91h1a+qqsNeh3flxmvA9cGct+PWgXY8Lr W217QQM9FquqXBIyT8EU9M3cBV1oYPMH0aYpogKxiszxrIZZXsHlc9THObxDzkdoejQs 94ywh6Vw6btCGjGLR4yq40NDYmyr3vY6nrnMXljkQwIKQDgNwIYFZ4F36EWn1eAMK6qV iw== Received: from p1lg14878.it.hpe.com (p1lg14878.it.hpe.com [16.230.97.204]) by mx0a-002e3701.pphosted.com (PPS) with ESMTPS id 3h97hygq7c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Jul 2022 12:21:49 +0000 Received: from p1lg14885.dc01.its.hpecorp.net (unknown [10.119.18.236]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by p1lg14878.it.hpe.com (Postfix) with ESMTPS id CB9B314783; Tue, 12 Jul 2022 12:21:48 +0000 (UTC) Received: from WAFM3XJD5N.asiapacific.hpqcorp.net (unknown [16.231.227.36]) by p1lg14885.dc01.its.hpecorp.net (Postfix) with ESMTP id C9C9C802BDD; Tue, 12 Jul 2022 12:21:47 +0000 (UTC) From: "Nickle Wang" To: devel@edk2.groups.io Cc: Abner Chang , Yang Atom , Nick Ramirez Subject: [edk2-staging][PATCH 03/15] edk2-staging/RedfishClientPkg: Update Redfish Resource Config Protocol Date: Tue, 12 Jul 2022 20:21:31 +0800 Message-Id: <20220712122143.1827-4-nickle.wang@hpe.com> X-Mailer: git-send-email 2.32.0.windows.2 In-Reply-To: <20220712122143.1827-1-nickle.wang@hpe.com> References: <20220712122143.1827-1-nickle.wang@hpe.com> MIME-Version: 1.0 X-Proofpoint-GUID: BI4JIEqxPO9eFmLgTM2paAhzfMv4y1a3 X-Proofpoint-ORIG-GUID: BI4JIEqxPO9eFmLgTM2paAhzfMv4y1a3 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-07-12_08,2022-07-12_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 suspectscore=0 phishscore=0 lowpriorityscore=0 mlxlogscore=999 malwarescore=0 impostorscore=0 clxscore=1015 adultscore=0 mlxscore=0 priorityscore=1501 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2207120048 Content-Transfer-Encoding: quoted-printable Update Redfish resource config protocol to support Identify action in order to identify remote resource and see if this is resource belongs to current owner or not. Use unicode string instead of ASCII string for all interfaces to align with HTTP interface. Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Yang Atom Cc: Nick Ramirez --- .../EdkIIRedfishResourceConfigProtocol.h | 29 +++++++++++++++---- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/RedfishClientPkg/Include/Protocol/EdkIIRedfishResourceConfigPr= otocol.h b/RedfishClientPkg/Include/Protocol/EdkIIRedfishResourceConfigProt= ocol.h index d6c41dda52..574c82c442 100644 --- a/RedfishClientPkg/Include/Protocol/EdkIIRedfishResourceConfigProtocol.h +++ b/RedfishClientPkg/Include/Protocol/EdkIIRedfishResourceConfigProtocol.h @@ -1,7 +1,7 @@ /** @file=0D This file defines the EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL interface.= =0D =0D - (C) Copyright 2021 Hewlett Packard Enterprise Development LP
=0D + (C) Copyright 2021-2022 Hewlett Packard Enterprise Development LP
=0D =0D SPDX-License-Identifier: BSD-2-Clause-Patent=0D =0D @@ -29,7 +29,7 @@ typedef EFI_STATUS=0D (EFIAPI *EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL_PROVISIONING) (=0D IN EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL *This,=0D - IN CHAR8 *Uri,=0D + IN EFI_STRING Uri,=0D IN BOOLEAN HttpPostMode=0D );=0D =0D @@ -47,7 +47,7 @@ typedef EFI_STATUS=0D (EFIAPI *EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL_CONSUME) (=0D IN EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL *This,=0D - IN CHAR8 *Uri=0D + IN EFI_STRING Uri=0D );=0D =0D =0D @@ -65,7 +65,7 @@ typedef EFI_STATUS=0D (EFIAPI *EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL_UPDATE) (=0D IN EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL *This,=0D - IN CHAR8 *Uri=0D + IN EFI_STRING Uri=0D );=0D =0D =0D @@ -83,7 +83,25 @@ typedef EFI_STATUS=0D (EFIAPI *EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL_CHECK) (=0D IN EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL *This,=0D - IN CHAR8 *Uri=0D + IN EFI_STRING Uri=0D + );=0D +=0D +/**=0D + Identify resource on given URI.=0D +=0D + @param[in] This Pointer to EDKII_REDFISH_RESOURCE_CONFI= G_PROTOCOL instance.=0D + @param[in] Uri The target URI to consume.=0D +=0D + @retval EFI_SUCCESS This is target resource which we want t= o handle.=0D + @retval EFI_UNSUPPORTED This is not the target resource.=0D + @retval Others Some error happened.=0D +=0D +**/=0D +typedef=0D +EFI_STATUS=0D +(EFIAPI *EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL_IDENTIFY) (=0D + IN EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL *This,=0D + IN EFI_STRING Uri=0D );=0D =0D //=0D @@ -121,6 +139,7 @@ struct _EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL { EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL_CONSUME Consume;=0D EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL_UPDATE Update;=0D EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL_CHECK Check;=0D + EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL_IDENTIFY Identify;=0D EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL_GET_INFO GetInfo;=0D };=0D =0D --=20 2.32.0.windows.2