From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web09.2587.1635494452057504872 for ; Fri, 29 Oct 2021 01:01:00 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=jo02fMxB; spf=temperror, err=temporary DNS error (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=0936be5d91=nickle.wang@hpe.com) Received: from pps.filterd (m0134424.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19T0g1jO001918; Fri, 29 Oct 2021 08:00:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pps0720; bh=4szjLBwC6BVBTbQOHJH+hrzj2MBW8mbDN2DZ/6LQLhg=; b=jo02fMxBN3ydvzioTzH22M5fHR8Gd8uRmI97tzgRDgkasQVKak9p67vVKy1CHNjeIdfM ylOItRR96oFztQHdstQZT6q0ku0mrfNHVi1y9r1XM8Dq/OfBOxyCsv+9mEdlfxEFMMoI cYcAxzCjL/QNx8Yx69wKq67qkYAswwWQwX6Ljcmwr0Ddnl1r7jEd6CYAnd2o/WvSdKZa KP5xgDXh1DbdODe7UjhaFbc1cw9thk7DlPGankbK0WEyriOVP3F4or4jZbKyGGWEPvGS APN26OoaB8VIgimHD6sOzFEnpdrc3XWBNqTPuRu3oD+UQ5+gtgtvt5PG3tVfoi3sH1tY Sg== Received: from g4t3425.houston.hpe.com (g4t3425.houston.hpe.com [15.241.140.78]) by mx0b-002e3701.pphosted.com with ESMTP id 3bywugetge-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Oct 2021 08:00:46 +0000 Received: from G1W8106.americas.hpqcorp.net (g1w8106.austin.hp.com [16.193.72.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g4t3425.houston.hpe.com (Postfix) with ESMTPS id 6CFB2D8; Fri, 29 Oct 2021 08:00:45 +0000 (UTC) Received: from G4W9333.americas.hpqcorp.net (16.208.32.119) by G1W8106.americas.hpqcorp.net (16.193.72.61) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Fri, 29 Oct 2021 08:00:44 +0000 Received: from G1W8106.americas.hpqcorp.net (16.193.72.61) by G4W9333.americas.hpqcorp.net (16.208.32.119) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Fri, 29 Oct 2021 08:00:44 +0000 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (15.241.52.11) by G1W8106.americas.hpqcorp.net (16.193.72.61) with Microsoft SMTP Server (TLS) id 15.0.1497.23 via Frontend Transport; Fri, 29 Oct 2021 08:00:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cT8Lp/rAzmaGHqPV+i7r4ImTLSERqVLmZBy684yMJOlSuaFfL+3OAN8Q9BX2DG4KPymG1TIUqlnRto5Q/GzH6KcKTyH/aHi5im57kC1rCDoNQgvQJglF2psPfdtCrZwcQvAgqGTdIpvaSQvZwOPJAzGGYOGvTCUp6CjlVdv9euGgGgge9NVsBR4UG7vufStc8VwmJO8SXXvBBkqTidoPhmmepAlUIs1jMC+hKqildZqpjabLmzHbzFAXykTRWVoYgA/LjXHnFH+yXwomfPlTlizY2hwW3vxlwUY3Y/yYPj9LxLydaG2S2X2HX8mNbX+4MkPA4ph5JtWoFW69nkVQFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4szjLBwC6BVBTbQOHJH+hrzj2MBW8mbDN2DZ/6LQLhg=; b=Zmcu9uaatOjyx95xJhlcT6QKpPdMif4S/hMkXo+3krt5/gSh2sVCGFNE7hcUr0d5KAjDFXyUSve1TgiamwnBJ7B1MjvztaRkXU/2XLairEBXxzRRp4PBd0iNtK9Fd/NTkdhIf98OiiNZK1XGhRFUFAzJfAuR+OwICaAxuJHfqCxabPNLOvL4yez806DMTTTBkeS8/EksIyZla0cUVw/eHUAknFB4RCFWyQfPGz1iDONBfB+i2J+LAuk2dqL7b7W8N+vJK5HxSBdgGZt5h4pR5sFgnyAT7n6b6nZYqvbM+lEQOOyrfH8U3Kx1pGOBIOFhTa1hCiywIZvAsucWU0mhxg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hpe.com; dmarc=pass action=none header.from=hpe.com; dkim=pass header.d=hpe.com; arc=none Received: from DF4PR8401MB0812.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:760d::7) by DF4PR8401MB0668.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7606::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.15; Fri, 29 Oct 2021 08:00:42 +0000 Received: from DF4PR8401MB0812.NAMPRD84.PROD.OUTLOOK.COM ([fe80::b41f:195:c98b:d0eb]) by DF4PR8401MB0812.NAMPRD84.PROD.OUTLOOK.COM ([fe80::b41f:195:c98b:d0eb%5]) with mapi id 15.20.4649.015; Fri, 29 Oct 2021 08:00:42 +0000 From: "Nickle Wang" To: "Chang, Abner (HPS SW/FW Technologist)" , "devel@edk2.groups.io" CC: Liming Gao Subject: Re: [PATCH] edk2-staging/RedfishClientPkg: Add the helper library Thread-Topic: [PATCH] edk2-staging/RedfishClientPkg: Add the helper library Thread-Index: AQHXzARg8k5+lrHe80GrNn9zWuZSBqvpnflA Date: Fri, 29 Oct 2021 08:00:42 +0000 Message-ID: References: <20211028140147.107340-1-abner.chang@hpe.com> In-Reply-To: <20211028140147.107340-1-abner.chang@hpe.com> Accept-Language: en-US, zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: hpe.com; dkim=none (message not signed) header.d=none;hpe.com; dmarc=none action=none header.from=hpe.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ed9d72b6-a715-4be6-63cd-08d99ab23474 x-ms-traffictypediagnostic: DF4PR8401MB0668: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: e4lGsK7SPjaXC9jta7srHltsyeMjOVpoQtBUX2PiqOCY5ZTnqNAHfcHcCma5JT3LH3gqzIX2LQ3B3inp/SRMYloEOPHDSOZ9FZNRDqG08KZZ9anLOVimgpK2tZ3XVJHCYoERKmFuYD545yPbiuQmX/cNSeV532AD/YNQmgj5+ogk6AE5A4cVvipO/zLveqhadLc7iXEllfZ9fBsNMkTnmhRi0GRjITqYzaDxeha8EEsoSAndWhHMDlH91itS7s+zRP69KubRbE/cBnl6EA3P89RfUyJlldWZaAFf1ywNIjTguYSuLl5Oz7QW4Yo7Jt84uIhJSu1J9eQ5FQM8qEQ4oX76x76HtiLy6SRwcdh5JikDIp/g+09Y2U9tQ/5tzDZVWRyBdk3ljzGIK7mJHJ+kSb8kSZj4PkolQ9k07HXEAnZUzOeUhdLR/2PIouv0ROuN8/9W7yPGgZnaLZKcW0kjhg/yI6NF7q59tB8OayoArDRdG0veU7wMwr3Dkt8PjCHkkdkhvuwEGPf8LOaFt4gRm5UkLXjseQk3nyH1WsYOo42nX2RweFy743OREBf3fKJBmTIUt7faG2dEBdoUWpdkk9py4dM4X9RPso3LP/TQxGTDjchWKOHJ7JVBNefkbuSR/qUQeL0qqg3JxRBjGVeDofWezzIRD1EDnqvEZkYIljf0hm/PchZtwZ7DFLZfyAcEwR8HDZEdCq9upOKpVTfa1A== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DF4PR8401MB0812.NAMPRD84.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(366004)(33656002)(38100700002)(8676002)(8936002)(38070700005)(66556008)(53546011)(83380400001)(4326008)(2906002)(64756008)(66446008)(66946007)(76116006)(52536014)(5660300002)(66476007)(6506007)(122000001)(55016002)(86362001)(110136005)(7696005)(9686003)(71200400001)(186003)(82960400001)(55236004)(508600001)(316002)(26005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?GmePw7diKGkGCXeOUNyFZh3il3n92jGfBWSfFPDMnP8JLxGxanj6DgiKIrRj?= =?us-ascii?Q?yym9Zcrv1xJlEL667muRfsMXus+MWfKpSBiA+pq3mbxaonZ7qyNRmyfrptMo?= =?us-ascii?Q?p0J9nkG/0vFkuz+PiHUjHCKhoegFRNbd1MEAELEPCp6jOBcA92c64W2NQGO+?= =?us-ascii?Q?gFUBFBCd+SPCYAKOV4rIoGO4sRVrY8Jki5GBf/I6Q1PYxZbAa1NfrNdc3byR?= =?us-ascii?Q?PsxnJFH0XEsxVl1yVqaLDLGs1/3HkClGiKsxKRE7bGHoFFg5Oe/j3CjR8dfQ?= =?us-ascii?Q?y8kaX0NJniz4KKDJtNvs92s0Co+QdZYRqNHFyhSMEmO10prx6XqGRQMhg3wq?= =?us-ascii?Q?Au2cYtwuGX7mAqB4UTn5WsgE9f6FuwfG1xWoL0i1k3zQOMjFgfGE5L+9ENei?= =?us-ascii?Q?jyT4cPjExb/MrRm69r+aiET2CBaMqefb8VrFVR39WJk44DJUbGKk54yFy2ZZ?= =?us-ascii?Q?vqiY5ETbaXYMc4dxnEVF3tCPewPV8MGXT6luHWT6fbbSNm+uzRCXi6lQ2C6y?= =?us-ascii?Q?MWPQUz5dzvB2ihB4RqJjq3TNr5zZfqkNpA1LkingnFbqVWW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V/eiENLU8XyXpYewoPmLDLX0/JkYwArMo4IsuqqD?= =?us-ascii?Q?NaaHIHsxNWuMIT5QZF01Pr4mEYxK3ViBEfO+JAlRQoCiqJ5qwqaz9O3zEN/4?= =?us-ascii?Q?Sfs+rgXL2YElDVnSmAvG6falDf1AHuWb+pdp9Ysd021QO1oTf1bezb6KhTZ2?= =?us-ascii?Q?yoXJvSKWcQFKNQcMKUgMPq4=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DF4PR8401MB0812.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: ed9d72b6-a715-4be6-63cd-08d99ab23474 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Oct 2021 08:00:42.2905 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 1lsk2ZTT0JSUEDcOu6GMcm1nQGXi0WZOr+j54c7C/OlSMTdLrHqN+O6ymKoRjWdyQPubAdd8dPuAehh+MqCAIg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR8401MB0668 X-OriginatorOrg: hpe.com X-Proofpoint-GUID: YPMjvUrMtndthDGvkfO9UQwnyNVa1HcY X-Proofpoint-ORIG-GUID: YPMjvUrMtndthDGvkfO9UQwnyNVa1HcY X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-29_01,2021-10-26_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 mlxlogscore=999 adultscore=0 spamscore=0 phishscore=0 lowpriorityscore=0 bulkscore=0 impostorscore=0 mlxscore=0 malwarescore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2110290045 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Nickle Wang Thanks, Nickle -----Original Message----- From: Chang, Abner (HPS SW/FW Technologist) =20 Sent: Thursday, October 28, 2021 10:02 PM To: devel@edk2.groups.io Cc: Chang, Abner (HPS SW/FW Technologist) ; Wang, Nick= le (HPS SW) ; Liming Gao Subject: [PATCH] edk2-staging/RedfishClientPkg: Add the helper library Add the helper library of converter common functions. Signed-off-by: Abner Chang Cc: Nickle Wang Cc: Liming Gao --- RedfishClientPkg/RedfishClientLibs.dsc.inc | 1 + .../ConverterCommonLib/ConverterCommonLib.inf | 44 +++++++++++++++++++ .../ConverterCommonLib/RedfishCsCommon.h | 14 ++++++ .../ConverterCommonLib/RedfishDataTypeDef.h | 13 ++++++ 4 files changed, 72 insertions(+) create mode 100644 RedfishClientPkg/ConverterLib/edk2library/ConverterComm= onLib/ConverterCommonLib.inf create mode 100644 RedfishClientPkg/ConverterLib/edk2library/ConverterComm= onLib/RedfishCsCommon.h create mode 100644 RedfishClientPkg/ConverterLib/edk2library/ConverterComm= onLib/RedfishDataTypeDef.h diff --git a/RedfishClientPkg/RedfishClientLibs.dsc.inc b/RedfishClientPkg/= RedfishClientLibs.dsc.inc index 4655dd7081b..a23b9478af1 100644 --- a/RedfishClientPkg/RedfishClientLibs.dsc.inc +++ b/RedfishClientPkg/RedfishClientLibs.dsc.inc @@ -20,4 +20,5 @@ RedfishFeatureUtilityLib|RedfishClientPkg/Library/RedfishFeatureUtilityL= ib/RedfishFeatureUtilityLib.inf RedfishPlatformConfigLib|RedfishPkg/Library/RedfishPlatformConfigLib/Red= fishPlatformConfigLib.inf RedfishContentCodingLib|RedfishPkg/Library/RedfishContentCodingLibNull/R= edfishContentCodingLibNull.inf + ConverterCommonLib|RedfishClientPkg/ConverterLib/edk2library/ConverterCo= mmonLib/ConverterCommonLib.inf =20 diff --git a/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/C= onverterCommonLib.inf b/RedfishClientPkg/ConverterLib/edk2library/Converter= CommonLib/ConverterCommonLib.inf new file mode 100644 index 00000000000..9311e5a5c64 --- /dev/null +++ b/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/Converte= rCommonLib.inf @@ -0,0 +1,44 @@ +## @file +# This is the helper library of converter +# +# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
+# SPDX-License-Identifier: BSD-2-Clause-Patent +# +# +[Defines] +INF_VERSION =3D 0x00010006 +BASE_NAME =3D ConverterCommonLib +FILE_GUID =3D B70BDFAE-4D07-9B07-FD24-42AA235D6108 +MODULE_TYPE =3D BASE +VERSION_STRING =3D 1.0 +LIBRARY_CLASS =3D ConverterCommonLib | DXE_DRIVER DXE_RUN= TIME_DRIVER UEFI_APPLICATION UEFI_DRIVER +# +# The following information is for reference only and not required by the = build tools. +# +# VALID_ARCHITECTURES =3D IA32 X64 IPF EBC RISCV64 +# + +[Sources] + ../../src/RedfishCsCommon.c + ../../src/RedfishCsMemory.c + +[Packages] + MdePkg/MdePkg.dec + RedfishPkg/RedfishPkg.dec + RedfishClientPkg/RedfishClientPkg.dec + +[LibraryClasses] + BaseLib + BaseMemoryLib + DebugLib + MemoryAllocationLib + JsonLib + +[BuildOptions] + # + # Disables the following Visual Studio compiler warnings + # so we do not break the build with /WX option: + # C4706: assignment within conditional expression + # + MSFT:*_*_*_CC_FLAGS =3D /wd4706 + diff --git a/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/R= edfishCsCommon.h b/RedfishClientPkg/ConverterLib/edk2library/ConverterCommo= nLib/RedfishCsCommon.h new file mode 100644 index 00000000000..37467378733 --- /dev/null +++ b/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/RedfishC= sCommon.h @@ -0,0 +1,14 @@ +/** @file + Wrapper file for RedfishCsCommon.h + + (C) Copyright 2021 Hewlett Packard Enterprise Development LP
+ SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#ifndef WRAPPER_REDFISH_CS_COMMON_H_ +#define WRAPPER_REDFISH_CS_COMMON_H_ + +#include "../../include/RedfishCsCommon.h" + +#endif diff --git a/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/R= edfishDataTypeDef.h b/RedfishClientPkg/ConverterLib/edk2library/ConverterCo= mmonLib/RedfishDataTypeDef.h new file mode 100644 index 00000000000..4a8410d82e2 --- /dev/null +++ b/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/RedfishD= ataTypeDef.h @@ -0,0 +1,13 @@ +/** @file + Wrapper file for RedfishDataTypeDef.h + + (C) Copyright 2021 Hewlett Packard Enterprise Development LP
+ SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ +#ifndef WRAPPER_REDFISH_DATA_TYPE_H_ +#define WRAPPER_REDFISH_DATA_TYPE_H_ + +#include "../../include/RedfishDataTypeDef.h" + +#endif --=20 2.21.0.windows.1