From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 4FC9181EFA for ; Sun, 26 Feb 2017 23:22:42 -0800 (PST) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP; 26 Feb 2017 23:22:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,213,1484035200"; d="scan'208";a="69934193" Received: from ray-dev.ccr.corp.intel.com ([10.239.9.25]) by fmsmga005.fm.intel.com with ESMTP; 26 Feb 2017 23:22:41 -0800 From: Ruiyu Ni To: edk2-devel@lists.01.org Date: Mon, 27 Feb 2017 15:22:28 +0800 Message-Id: <20170227072239.273228-1-ruiyu.ni@intel.com> X-Mailer: git-send-email 2.9.0.windows.1 Subject: [PATCH v2 00/11] Add StrToGuid/HexToBytes/Ipv4/Ipv6 in BaseLib X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2017 07:22:42 -0000 The patch set adds StrToGuid/StrHexToBytes/StrToIPv4Address /StrToIPv6Address and the accordingly ASCII versioins to BaseLib. It also changes all existing consumers to use the new APIs. v2: Return UNSUPPORTED for cases when the string is malformatted. Update consumer code to use RETURN_STATUS receive the returned status instead of embedding the function call in RETURN_ERROR(). Ruiyu Ni (11): MdePkg: Define IPv4_ADDRESS and IPv6_ADDRESS in Base.h MdePkg/UefiDevicePathLib: Rename StrToGuid to avoid link failure SignedCapsulePkg/IniParsing: Rename StrToGuid to avoid link failure MdePkg/BaseLib: Add StrToGuid/StrHexToBytes/StrToIpv[4/6]Address MdePkg/BaseLib: Add AsciiStrToGuid/HexToBytes/ToIpv[4/6]Address MdePkg/UefiDevicePathLib: Use BaseLib string conversion services MdeModulePkg/CapsuleApp: Use StrToGuid in BaseLib SecurityPkg/SecureBootConfigDxe: Use StrToGuid in BaseLib ShellPkg/Debug1CommandLib: Use StrToGuid/StrHexToBytes in BaseLib SignedCapsulePkg/IniParsingLib: Use AsciiStrToGuid in BaseLib MdeModulePkg/NetLib: Use StrToIpv4/6Address in BaseLib MdeModulePkg/Application/CapsuleApp/AppSupport.c | 140 +-- MdeModulePkg/Application/CapsuleApp/CapsuleApp.c | 27 +- MdeModulePkg/Include/Library/NetLib.h | 5 +- MdeModulePkg/Library/DxeNetLib/DxeNetLib.c | 382 +------ MdePkg/Include/Base.h | 16 +- MdePkg/Include/Library/BaseLib.h | 445 ++++++++ MdePkg/Include/Uefi/UefiBaseType.h | 10 +- MdePkg/Library/BaseLib/SafeString.c | 1204 ++++++++++++++++++++ .../Library/UefiDevicePathLib/DevicePathFromText.c | 213 +--- .../SecureBootConfigDxe/SecureBootConfigImpl.c | 12 +- .../SecureBootConfigDxe/SecureBootConfigImpl.h | 22 +- .../SecureBootConfigDxe/SecureBootConfigMisc.c | 141 +-- .../Library/UefiShellDebug1CommandsLib/DmpStore.c | 7 +- .../Library/UefiShellDebug1CommandsLib/SetVar.c | 12 +- .../UefiShellDebug1CommandsLib.c | 119 +- .../UefiShellDebug1CommandsLib.h | 32 +- .../Library/IniParsingLib/IniParsingLib.c | 148 +-- 17 files changed, 1740 insertions(+), 1195 deletions(-) -- 2.9.0.windows.1