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.web11.13440.1635429730952017920 for ; Thu, 28 Oct 2021 07:02:15 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=nZOfMca6; spf=temperror, err=temporary DNS error (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=09357d8486=abner.chang@hpe.com) 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pps0720; bh=cGSP901udRcA0Ct8g+f2SNCTr0z7Q8R/ROg/1y7lPa0=; b=nZOfMca6KHs5YglDHlo59n6FE35rckEvdUq382qiiDdU/AfOG5ggzei1gE0JQLbnI5jH 7PQ10WMkqWVxojLWl5IMgU1eNcDAtvk7w9R7eQcZita1tsgi5TnzgjrsO1mLQvIwa2wh D2gZg9bE13HeBF+pzw1GIyRzszlc4hpWlrpZo5Ct/0czu6XadT3//XVMoqxqAq0m+FCZ 1OPapHDOXKUv18coHkXH6CLiNNnUNCfxJGwtzvK+qdvZIkTYIBHrPJrM0SnqkS5dKTeu QqQDUry4xAPNmMAcEH5AfjOEBy2lLjXezxUTq5GYeBhUsT8tYgbiHMolMiQC50QSzxmD +Q== 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 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) 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: [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> X-Mailer: git-send-email 2.21.0.windows.1 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: uCAZ9B55BeabYcX5ui2WNEF9zLVsPPWF X-Proofpoint-GUID: uCAZ9B55BeabYcX5ui2WNEF9zLVsPPWF 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-28_01,2021-10-26_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 adultscore=0 spamscore=0 clxscore=1015 impostorscore=0 mlxscore=0 phishscore=0 mlxlogscore=594 lowpriorityscore=0 priorityscore=1501 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2110280079 Content-Transfer-Encoding: 8bit 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/ConverterCommonLib/ConverterCommonLib.inf create mode 100644 RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/RedfishCsCommon.h create mode 100644 RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/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/RedfishFeatureUtilityLib/RedfishFeatureUtilityLib.inf RedfishPlatformConfigLib|RedfishPkg/Library/RedfishPlatformConfigLib/RedfishPlatformConfigLib.inf RedfishContentCodingLib|RedfishPkg/Library/RedfishContentCodingLibNull/RedfishContentCodingLibNull.inf + ConverterCommonLib|RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/ConverterCommonLib.inf diff --git a/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/ConverterCommonLib.inf b/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/ConverterCommonLib.inf new file mode 100644 index 00000000000..9311e5a5c64 --- /dev/null +++ b/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/ConverterCommonLib.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 = 0x00010006 +BASE_NAME = ConverterCommonLib +FILE_GUID = B70BDFAE-4D07-9B07-FD24-42AA235D6108 +MODULE_TYPE = BASE +VERSION_STRING = 1.0 +LIBRARY_CLASS = ConverterCommonLib | DXE_DRIVER DXE_RUNTIME_DRIVER UEFI_APPLICATION UEFI_DRIVER +# +# The following information is for reference only and not required by the build tools. +# +# VALID_ARCHITECTURES = 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 = /wd4706 + diff --git a/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/RedfishCsCommon.h b/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/RedfishCsCommon.h new file mode 100644 index 00000000000..37467378733 --- /dev/null +++ b/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/RedfishCsCommon.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/RedfishDataTypeDef.h b/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/RedfishDataTypeDef.h new file mode 100644 index 00000000000..4a8410d82e2 --- /dev/null +++ b/RedfishClientPkg/ConverterLib/edk2library/ConverterCommonLib/RedfishDataTypeDef.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 -- 2.21.0.windows.1