summaryrefslogtreecommitdiff
path: root/MdePkg/Include/Library
diff options
context:
space:
mode:
authorHao Wu <hao.a.wu@intel.com>2016-08-03 15:29:50 +0800
committerHao Wu <hao.a.wu@intel.com>2016-08-22 18:54:29 +0800
commit313831d9333d66f311b18c671ae5ae0e755435f1 (patch)
tree0710929614d43c94101d3b3c1d0121719e2abacc /MdePkg/Include/Library
parent669a7562cb3488f36550dc43b8db8d312da1f281 (diff)
downloadedk2-313831d9333d66f311b18c671ae5ae0e755435f1.zip
edk2-313831d9333d66f311b18c671ae5ae0e755435f1.tar.gz
edk2-313831d9333d66f311b18c671ae5ae0e755435f1.tar.bz2
MdePkg BaseMemoryLib: Add implementation of API IsZeroGuid()
Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdePkg/Include/Library')
-rw-r--r--MdePkg/Include/Library/BaseMemoryLib.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/MdePkg/Include/Library/BaseMemoryLib.h b/MdePkg/Include/Library/BaseMemoryLib.h
index e3a46d0..ed7fa00 100644
--- a/MdePkg/Include/Library/BaseMemoryLib.h
+++ b/MdePkg/Include/Library/BaseMemoryLib.h
@@ -5,7 +5,7 @@
These functions should be used in place of coding your own loops to do equivalent common functions.
This allows optimized library implementations to help increase performance.
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available under
the terms and conditions of the BSD License that accompanies this distribution.
The full text of the license may be found at
@@ -443,4 +443,24 @@ ScanGuid (
IN CONST GUID *Guid
);
+/**
+ Checks if the given GUID is a zero GUID.
+
+ This function checks whether the given GUID is a zero GUID. If the GUID is
+ identical to a zero GUID then TRUE is returned. Otherwise, FALSE is returned.
+
+ If Guid is NULL, then ASSERT().
+
+ @param Guid The pointer to a 128 bit GUID.
+
+ @retval TRUE Guid is a zero GUID.
+ @retval FALSE Guid is not a zero GUID.
+
+**/
+BOOLEAN
+EFIAPI
+IsZeroGuid (
+ IN CONST GUID *Guid
+ );
+
#endif