From nobody Mon Apr 29 19:26:52 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+82810+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+82810+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=hpe.com ARC-Seal: i=1; a=rsa-sha256; t=1635429739; cv=none; d=zohomail.com; s=zohoarc; b=TAkBM95pV9knK/Eu8oilvZhWD8/GjjaSwsywc2FTxlaoLcaiC5ugd6PPBeBR9jEXLSUxEk37x/jbn9HHwkzwcnnsjC7nl/187duLwHjr8gspI8fWA8dFn0GqAgOBu+Flpbl9kz32ezBB2QgyqbnECYtvBVkAzbHq5hqdxG/BtBw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635429739; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=fhjq3ybQJHmHr8A+13/Xl1Q9OGr8Y06MgfUxwAfZniQ=; b=aO47klwZ6gpQWBFUsmMYmzNJRPyHnL6AQgfDwT71lAbWjmR5F/1gc+n5Mzy03/3EcihOXxfT0uLYyMhLh3PZaWeuMSz/r6aR7UQ+M9yhNt03Ut91xu1refb4OAYEzjpo7R+4GYIonTbNb9f/sRW6gRgUPsabXYVwUMK4pct1/Wc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+82810+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1635429739059570.5901776025063; Thu, 28 Oct 2021 07:02:19 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id AxKkYY1788612x3bMiKfEhfe; Thu, 28 Oct 2021 07:02:15 -0700 X-Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web11.13440.1635429730952017920 for ; Thu, 28 Oct 2021 07:02:15 -0700 X-Received: from pps.filterd (m0150242.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19S9e9PG027456; Thu, 28 Oct 2021 14:01:51 GMT X-Received: from g4t3427.houston.hpe.com (g4t3427.houston.hpe.com [15.241.140.73]) by mx0a-002e3701.pphosted.com with ESMTP id 3by7cujjre-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 28 Oct 2021 14:01:51 +0000 X-Received: from g4t3433.houston.hpecorp.net (g4t3433.houston.hpecorp.net [16.208.49.245]) by g4t3427.houston.hpe.com (Postfix) with ESMTP id A88456A; Thu, 28 Oct 2021 14:01:50 +0000 (UTC) X-Received: from SAC2XFT1JT.asiapacific.hpqcorp.net (unknown [10.43.62.133]) by g4t3433.houston.hpecorp.net (Postfix) with ESMTP id 620EC58; Thu, 28 Oct 2021 14:01:49 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com, Nickle Wang , Liming Gao Subject: [edk2-devel] [PATCH] edk2-staging/RedfishClientPkg: Add the helper library Date: Thu, 28 Oct 2021 22:01:47 +0800 Message-Id: <20211028140147.107340-1-abner.chang@hpe.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: uCAZ9B55BeabYcX5ui2WNEF9zLVsPPWF X-Proofpoint-GUID: uCAZ9B55BeabYcX5ui2WNEF9zLVsPPWF X-HPE-SCL: -1 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,abner.chang@hpe.com X-Gm-Message-State: UFAoJsPfPiYOsN3shiSnEnBAx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1635429735; bh=lUNxBfvNcFHQAEt2cpKqfCOkD1UqRODxOw101CWnsW4=; h=Cc:Date:From:Reply-To:Subject:To; b=XOSjn8U6HkF15ZOihvBQa9+xQ70HYxhzkOvqkJDb2uWFKyDg6SrBbry0EJOQ2snZTHY oWeQjVeHAxWNcu15jEisdAA0zq/CUu8aJW1dEPx9PEZaSVaPBV6JHwz1uIM/XkHO1nERh 0jzzWjAqKEPKhY1jCyKh7jStv17ZC4ncWHs= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1635429771170100001 Content-Type: text/plain; charset="utf-8" Add the helper library of converter common functions. Signed-off-by: Abner Chang Cc: Nickle Wang Cc: Liming Gao Reviewed-by: Nickle Wang --- 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 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#82810): https://edk2.groups.io/g/devel/message/82810 Mute This Topic: https://groups.io/mt/86652773/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-