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.web11.7220.1604021754881297436 for ; Thu, 29 Oct 2020 18:35:55 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=SQmwkyJg; spf=pass (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=0572814f16=abner.chang@hpe.com) Received: from pps.filterd (m0134423.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 09U1XR7p011628 for ; Fri, 30 Oct 2020 01:35:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : subject : date : message-id; s=pps0720; bh=mCVLefHoAyVP/qvbKoyDR7MyFgyQG00NDUxpNXYpXos=; b=SQmwkyJg8PtZzmkoJ/U5xK1MzQ+M+dhVN9BHDrQzetKUl/kbMUHSMT+7VctuacLaSSJd dgTFC3Gz/lzx2wj5Ey/22GmWLXf+fZdyCzPJ3qmtHkoZTdoJGn+MeKKMzLJcmWEfYIJy jDg5D6SsLaGzdymL7H4KzqB8kX/1tc/WFFQTy059u1HOojvtczjBOyaj0wCg2DHWB2F/ QVVcm6ICZ+YCAX6ZpPF4gLFAly9uHWf8BfYhUEjZ4l97ywMIenpe17R82s1740+kna6V Wm46BF3Ln2YBHLaRt7ybj07DzUI6KSAOGlQielxmUkry+FQeeIgZEDzp/VVA2ad7OGBz yQ== Received: from g2t2353.austin.hpe.com (g2t2353.austin.hpe.com [15.233.44.26]) by mx0b-002e3701.pphosted.com with ESMTP id 34g15pbry1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 30 Oct 2020 01:35:53 +0000 Received: from g2t2360.austin.hpecorp.net (g2t2360.austin.hpecorp.net [16.196.225.135]) by g2t2353.austin.hpe.com (Postfix) with ESMTP id 4EBE46D for ; Fri, 30 Oct 2020 01:35:53 +0000 (UTC) Received: from abner-virtual-machine.asiapacific.hpqcorp.net (abner-virtual-machine.asiapacific.hpqcorp.net [15.119.210.153]) by g2t2360.austin.hpecorp.net (Postfix) with ESMTP id AA37A36 for ; Fri, 30 Oct 2020 01:35:52 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Subject: [RestJsonStructureDxe PATCH v4 0/3] EFI REST JSON Structure Protocol Date: Fri, 30 Oct 2020 08:50:30 +0800 Message-Id: <20201030005033.31953-1-abner.chang@hpe.com> X-Mailer: git-send-email 2.17.1 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-10-29_12:2020-10-29,2020-10-29 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxscore=0 spamscore=0 malwarescore=0 bulkscore=0 suspectscore=1 lowpriorityscore=0 mlxlogscore=760 impostorscore=0 phishscore=0 priorityscore=1501 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2010300008 This is the implementation of EFI_REST_JSON_STRUCTURE_PROTOCOL, refer to UEFI spec 2.8 Section 29.7.3 EFI REST JSON Resource to C Structure Converter. In v4: Address comments given by Nickle. - Uninstall protocol in RestJsonStructureUnload (). In v3: Fix CI test errors, - Add RedfishPkg dependence in RedfishPkg.i.yaml. - Add ARM instrinsic libraries to RedfishPkg.dsc for ARM/AARCH64. In v2: - Couple feedbacks given by Liming on patch 1/2 were addressed. - Cosmetics on the source code in patch 2/2. Signed-off-by: Abner Chang Abner Chang (3): MdePkg/Include: Definitions of EFI REST JSON Structure Protocol RedfishPkg/RestJsonStructureDxe: EFI REST JSON Structure Protocol RedfishPkg: Changes on RedfishPkg for CI test MdePkg/Include/Protocol/RestJsonStructure.h | 161 +++++ MdePkg/MdePkg.dec | 3 + RedfishPkg/RedfishPkg.ci.yaml | 3 +- RedfishPkg/RedfishPkg.dsc | 11 + .../RestJsonStructureDxe.c | 586 ++++++++++++++++++ .../RestJsonStructureDxe.inf | 39 ++ .../RestJsonStructureInternal.h | 33 + 7 files changed, 835 insertions(+), 1 deletion(-) create mode 100644 MdePkg/Include/Protocol/RestJsonStructure.h create mode 100644 RedfishPkg/RestJsonStructureDxe/RestJsonStructureDxe.c create mode 100644 RedfishPkg/RestJsonStructureDxe/RestJsonStructureDxe.inf create mode 100644 RedfishPkg/RestJsonStructureDxe/RestJsonStructureInternal.h -- 2.17.1