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.web12.46018.1606181436943308557 for ; Mon, 23 Nov 2020 17:30:36 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=Qoi1Gu1I; spf=pass (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=05978581c8=abner.chang@hpe.com) Received: from pps.filterd (m0150242.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0AO1SGfT010922; Tue, 24 Nov 2020 01:30:34 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=RHj7pBW4OZXVsKebCeloK3z7gLVm5aLBk9GiNcorO2M=; b=Qoi1Gu1Ie8z4ChD8eP1h8+5OLdpO1zibI9yu0nJiKyxFrEWe89PhvF8VZKT6KxptgeSX 8HTHJvoTzKeke3Z+21XACpYuXC+m/27qlam40XDFqhJcF9PQYmYq+2KLtQnidjwlLtmY tvzUO7AmBjx6PudPVeZYz6nD5JD7CRjj+Ic8BQd+oig48SynH/xkPtU0gJScwoS7YfOw yrql6nAe8t48i6KU7BQsmB2WF76a03RM1V5puTKy/eHFvHjfKTozjLRmfasyNXMeCHQJ QtiTuzQG1oE58D0VumRW5IFRxUWHRjre3eYjmBdiKOvU0MyZ2XuOFbnR1W/kAGFw/u4p 2w== Received: from g9t5008.houston.hpe.com (g9t5008.houston.hpe.com [15.241.48.72]) by mx0a-002e3701.pphosted.com with ESMTP id 34ycyfpgm2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 Nov 2020 01:30:33 +0000 Received: from G4W9119.americas.hpqcorp.net (exchangepmrr1.us.hpecorp.net [16.210.20.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g9t5008.houston.hpe.com (Postfix) with ESMTPS id EFAF653; Tue, 24 Nov 2020 01:30:32 +0000 (UTC) Received: from G9W8453.americas.hpqcorp.net (2002:10d8:a0d3::10d8:a0d3) by G4W9119.americas.hpqcorp.net (2002:10d2:14d6::10d2:14d6) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 24 Nov 2020 01:30:32 +0000 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (15.241.52.10) by G9W8453.americas.hpqcorp.net (16.216.160.211) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Tue, 24 Nov 2020 01:30:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YX1aRDOwraKWIme+BJTzr68ZWZDFTzq2jWwwVd90PDFEP+PbEypRCb6x6snbmOv3hftukSpizxtEzd1HC87fsOpV1uZeGKNnermZVZZgmKUml1ZTvYca6KkJ7IF1cYmAft6NJxxp6GXEue6S5oKKyEvZTqOL6TxaCUXGok5OFSWpsWxNycTO311+3f/C8E2s5TKn+gEpmbLSCsZIMM1tCN2IaSfvAeGzFwN5/oJQzHcNuxEtaFi6pRmPsJYPLOjV5mSuivuxHYl8rCFkfyjLt5mN7v7C5+N6+B1xgIosCuZ42FOr5vSq2lFO7v9JPKvys1rqbRy+9M+o3na77m6nRw== 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-SenderADCheck; bh=ieDt/EvpwgjzTXvR/m043NdD7GBWFaEFzTFmVdzsUEY=; b=C/KYsHSl/EI5wFhcrZs7SIhuB3i23Cp8S+K4ucS4hpn/Jo/oO8V758sO0VI/FV8Y3o4oj8sTKG2FsmYTCzFKG+JTD2mbW1PXMIj1uBogrGwkkznkfPCiCFgrPLl0ok16tRiU0KEvtJd/QtDeijQZMn5O81uu5R6Q52gH2c3R7EO6rAjrS4VGgRlmV0OTlkD18RmQttIkuWwId/dT6+KXxGPS9g76qFniHRxjYRv7RJQrPE4yueAxwhXLW8sx2yp7yAs1DVlGXhJo/MCrC6+FwFyQYsPFFn1R/C/zRvlCeHjydlaJf4PXUZAQBYTKKZCnLtjAxueYFRWzM3ZaT49UnQ== 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 CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7508::16) by CS1PR8401MB0421.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7508::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3589.22; Tue, 24 Nov 2020 01:30:31 +0000 Received: from CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM ([fe80::a094:ed67:fb40:340e]) by CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM ([fe80::a094:ed67:fb40:340e%10]) with mapi id 15.20.3589.030; Tue, 24 Nov 2020 01:30:30 +0000 From: "Abner Chang" To: "devel@edk2.groups.io" , "hao.a.wu@intel.com" CC: "Wang, Jian J" , Andrew Fish , Laszlo Ersek , Leif Lindholm , "Kinney, Michael D" , "Wang, Nickle (HPS SW)" , "O'Hanley, Peter (EXL)" Subject: Re: [edk2-devel] [PATCH 0/3] JsonLib: jansson edk2 port Thread-Topic: [edk2-devel] [PATCH 0/3] JsonLib: jansson edk2 port Thread-Index: AQHWwaWpgE6CyF0BvkuX9D6Pt2xq3KnWexUwgAADLLA= Date: Tue, 24 Nov 2020 01:30:30 +0000 Message-ID: References: <20201123134722.15980-1-abner.chang@hpe.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=hpe.com; x-originating-ip: [1.34.113.40] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 4425d84f-1347-4c63-b7aa-08d890188810 x-ms-traffictypediagnostic: CS1PR8401MB0421: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:291; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 2jmbd4BC13vLLTqv5oAJsQo8Y6a2QV78pBl+Dx6u2uj3BHdS0GTS0XEXAzyzBzs/obfjBcuYiHlTAUVUq4cvZ5U480x7ZycN1fq1j+LCFhFRYuXDGKsSlkwPvKEzjjrK+QTkqvQh+hAFOU4OypXeKrpW4EsNnIUc040B3YsmnOQEu8aIFv6X4uwBHfVNtQFPG6l5++389M3VWBmHAFrkVN1SZCcCyxwwmRZJoMmmodLwIhF+wC+0XGVSSERL+GLdghW34okGlHbgjAjq386dlzJiMl4a2R8ehNCCUaj6WokLamEnaljeUwpHUL1IbTBB00wXT+DrlIXBX5n/8r5ht1UODazq2oqlOrfmL+e7wiZO1CTUI+JmqGwoSkMHjHNqQWXDHAyUxes6uMM+SWJKGg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(39860400002)(346002)(376002)(136003)(366004)(396003)(86362001)(52536014)(71200400001)(5660300002)(19627235002)(33656002)(966005)(4326008)(8936002)(8676002)(66946007)(7696005)(66476007)(64756008)(66446008)(66556008)(316002)(186003)(53546011)(76116006)(2906002)(83380400001)(6506007)(110136005)(55016002)(54906003)(26005)(478600001)(9686003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: fRzUxYingGUkSGV8FwC1a9JCm4Kzl8S+Fg7/P7GSaWU+9w95Jm7d5562nXaxiI+gw+K+9V0NIK6P7agRm7b9nYmW7ROpMWEjQF4ccvJUvnQWZL4BZdwtnI9Wefg3X/NF9pmhcYL8RgrDoczPZIIdHmRZa89HsF/sesmV9Y90wAxCkA5mTq4pWcxcRehYuMbwhhHHuM1cR2iFsdHDhgLIq06kd33K4jZ3/DqTX/JddTPFHiXz54B9BImqAaqPCHHOakOhGL7mfpyDezCrnmHTh3Qu5a4W4va4Wu1hi2/RRhS/rh1+RhJXSRTWaEBkMIPxRMYHH0CBdTAP+SlQCsAN3+DQHAu+8AM+LvfriGJgISdXeC8I6nT4phMa9R+3ZzHyfaXJMc1GIPBNlFB2vIPewgsDnyyxnhVZf+rBHh5ch6dePOPTxD4S/0MJKd7QuhJNs+O9vJfMtbBygCJyUT8zQdsc/aZZZH+1VgNdgMUu7G34TYVoz0D8ZzsxEnXMaWn38B624mlCF8M1+T0KpLRw2+B3bIOIfiDtyA1l+VIWfijreRXSY7aqnFetGpO+r5zf2WR9UHTq0D+/Trsx0xbNLlS4cVlVZRkYVJQbshtoRyOaq6RMOgu+r3VL3zmoVgEOcST0s1ODQcqX5/riZaMf++iiFppDx4FJRlKJWfWiuyUxtW7tdDLFRXHC4Yx+ru6DjdMpOKeoruzkmm/VteJ/qcrl/aBGcDzanOlIct0rKAqWiDsNG37ZmV50Q3i+r+m3V2HWDz7A1pluoctP12KlXW5Y3M5okcPbj+Xy4R7EdFlhC3CZ4GXPC0HPc78Fk31QAlZl2Mc5jlwPCsgH1+Vzcl11V2R2SN7k6/pV5CuBY3HQvux3xMzFMdJ1iL2kKfL/xAbnWMBd/C5CaApw5m3zjA== X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 4425d84f-1347-4c63-b7aa-08d890188810 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Nov 2020 01:30:30.8237 (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: 08kvnHbOsA8RA3jRSbsWRmv6oICw7Uy/rQgBMz0rDfzMKLvbHa0ykLBzWyYjVkRSAb5kJT58mX86xSkBhWHFEw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CS1PR8401MB0421 X-OriginatorOrg: hpe.com X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-11-23_19:2020-11-23,2020-11-23 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxscore=0 lowpriorityscore=0 adultscore=0 spamscore=0 malwarescore=0 impostorscore=0 phishscore=0 bulkscore=0 mlxlogscore=999 suspectscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011240006 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable > -----Original Message----- > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of > Wu, Hao A > Sent: Tuesday, November 24, 2020 9:20 AM > To: Chang, Abner (HPS SW/FW Technologist) ; > devel@edk2.groups.io > Cc: Wang, Jian J ; Andrew Fish ; > Laszlo Ersek ; Leif Lindholm ; > Kinney, Michael D ; Wang, Nickle (HPS SW) > ; O'Hanley, Peter (EXL) > Subject: Re: [edk2-devel] [PATCH 0/3] JsonLib: jansson edk2 port >=20 > > -----Original Message----- > > From: Abner Chang > > Sent: Monday, November 23, 2020 9:47 PM > > To: devel@edk2.groups.io > > Cc: Wang, Jian J ; Wu, Hao A > > ; Andrew Fish ; Laszlo Ersek > > ; Leif Lindholm ; Kinney, > > Michael D ; Nickle Wang > > ; Peter O'Hanley > > Subject: [PATCH 0/3] JsonLib: jansson edk2 port > > > > This set of pactehs is sent for the comments on edk2 JSON library. > > edk2 JSON library is based on jansson open source > > (https://github.com/akheron/jansson) and wrapped as an edk2 library. > > edk2 JsonLib will be used by edk2 Redfish feature drivers (not > > contributed yet) >=20 >=20 > Hello, >=20 > Sorry for possibly missing previous discussions on the Redfish feature. > I am wondering is it more straight-forward to put the JsonLib together w= ith > the Readfish codes under RedfishPkg? Hi Hao,=20 The idea is JSON is not the representation of data payload for Redfish onl= y and JsonLib could be not only for Redfish neither. Any applications which= use JSON as data payload can leverage JsonLib. Thanks Abner >=20 > Best Regards, > Hao Wu >=20 >=20 > > and the edk2 port of libredfish library (not contributed yet) based on > > DMTF GitHub (https://github.com/DMTF/libredfish). > > > > You will encounterred the build error with the jansson library pointed > > in submoudle (v2.13.1) and the fix is already submitted to jansson > > open source (https://github.com/akheron/jansson/pull/558). > > > > Signed-off-by: Abner Chang > > > > Cc: Jian J Wang > > Cc: Hao A Wu > > Cc: Andrew Fish > > Cc: Laszlo Ersek > > Cc: Leif Lindholm > > Cc: Michael D Kinney > > Cc: Nickle Wang > > Cc: Peter O'Hanley > > > > Abner Chang (3): > > edk2: jansson submodule of JSON library > > MdeModulePkg/library: EDK2 port jansson library > > MdeModulePkg: Add EDK2 port jansson library > > > > .gitmodules | 3 + > > MdeModulePkg/Include/Library/JsonLib.h | 596 +++++++++++++ > > .../Library/JsonLib/JanssonCrtLibSupport.c | 705 +++++++++++++++ > > .../Library/JsonLib/JanssonCrtLibSupport.h | 198 +++++ > > MdeModulePkg/Library/JsonLib/JsonLib.c | 805 > ++++++++++++++++++ > > MdeModulePkg/Library/JsonLib/JsonLib.inf | 81 ++ > > MdeModulePkg/Library/JsonLib/JsonUtilities.c | 417 +++++++++ > > MdeModulePkg/Library/JsonLib/JsonUtilities.h | 69 ++ > > MdeModulePkg/Library/JsonLib/assert.h | 11 + > > MdeModulePkg/Library/JsonLib/errno.h | 11 + > > MdeModulePkg/Library/JsonLib/jansson | 1 + > > MdeModulePkg/Library/JsonLib/jansson_config.h | 57 > > ++ .../Library/JsonLib/jansson_private_config.h | 19 + > > MdeModulePkg/Library/JsonLib/limits.h | 11 + > > MdeModulePkg/Library/JsonLib/math.h | 11 + > > MdeModulePkg/Library/JsonLib/stdarg.h | 11 + > > MdeModulePkg/Library/JsonLib/stddef.h | 11 + > > MdeModulePkg/Library/JsonLib/stdio.h | 11 + > > MdeModulePkg/Library/JsonLib/stdlib.h | 11 + > > MdeModulePkg/Library/JsonLib/string.h | 11 + > > MdeModulePkg/Library/JsonLib/sys/time.h | 11 + > > MdeModulePkg/Library/JsonLib/sys/types.h | 10 + > > MdeModulePkg/Library/JsonLib/time.h | 11 + > > MdeModulePkg/MdeModulePkg.dec | 7 +- > > MdeModulePkg/MdeModulePkg.dsc | 4 +- > > ReadMe.rst | 1 + > > 26 files changed, 3092 insertions(+), 2 deletions(-) create mode > > 100644 MdeModulePkg/Include/Library/JsonLib.h > > create mode 100644 > > MdeModulePkg/Library/JsonLib/JanssonCrtLibSupport.c > > create mode 100644 > > MdeModulePkg/Library/JsonLib/JanssonCrtLibSupport.h > > create mode 100644 MdeModulePkg/Library/JsonLib/JsonLib.c > > create mode 100644 MdeModulePkg/Library/JsonLib/JsonLib.inf > > create mode 100644 MdeModulePkg/Library/JsonLib/JsonUtilities.c > > create mode 100644 MdeModulePkg/Library/JsonLib/JsonUtilities.h > > create mode 100644 MdeModulePkg/Library/JsonLib/assert.h > > create mode 100644 MdeModulePkg/Library/JsonLib/errno.h > > create mode 160000 MdeModulePkg/Library/JsonLib/jansson > > create mode 100644 MdeModulePkg/Library/JsonLib/jansson_config.h > > create mode 100644 > > MdeModulePkg/Library/JsonLib/jansson_private_config.h > > create mode 100644 MdeModulePkg/Library/JsonLib/limits.h > > create mode 100644 MdeModulePkg/Library/JsonLib/math.h > > create mode 100644 MdeModulePkg/Library/JsonLib/stdarg.h > > create mode 100644 MdeModulePkg/Library/JsonLib/stddef.h > > create mode 100644 MdeModulePkg/Library/JsonLib/stdio.h > > create mode 100644 MdeModulePkg/Library/JsonLib/stdlib.h > > create mode 100644 MdeModulePkg/Library/JsonLib/string.h > > create mode 100644 MdeModulePkg/Library/JsonLib/sys/time.h > > create mode 100644 MdeModulePkg/Library/JsonLib/sys/types.h > > create mode 100644 MdeModulePkg/Library/JsonLib/time.h > > > > -- > > 2.17.1 >=20 >=20 >=20 >=20 >=20