]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg: Minor update to the Data parameter for GetVariable()
authorStar Zeng <star.zeng@intel.com>
Fri, 29 Jan 2016 09:15:33 +0000 (09:15 +0000)
committerlzeng14 <lzeng14@Edk2>
Fri, 29 Jan 2016 09:15:33 +0000 (09:15 +0000)
UEFI 2.6 spec has minor update to the Data parameter for GetVariable(),
and no real functional behavior change.

The modifier of Data parameter:
OUT VOID *Data
->
OUT VOID *Data OPTIONAL

The comments of Data parameter:
Data The buffer to return the contents of the variable.
->
Data The buffer to return the contents of the variable. May be NULL
        with a zero DataSize in order to determine the size buffer needed.

The patch is to follow the spec to update the definition.

Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19770 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Uefi/UefiSpec.h

index 909b8a109de30b6f26ece073eb29137c4594eeeb..14ffc60308099e2bc3504c3dabbc8312e617f312 100644 (file)
@@ -5,7 +5,7 @@
   If a code construct is defined in the UEFI 2.5 specification it must be included\r
   by this include file.\r
 \r
-Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials are licensed and made available under \r
 the terms and conditions of the BSD License that accompanies this distribution.  \r
 The full text of the license may be found at\r
@@ -628,7 +628,8 @@ VOID
                                  attributes bitmask for the variable.\r
   @param[in, out]  DataSize      On input, the size in bytes of the return Data buffer.\r
                                  On output the size of data returned in Data.\r
-  @param[out]      Data          The buffer to return the contents of the variable.\r
+  @param[out]      Data          The buffer to return the contents of the variable. May be NULL\r
+                                 with a zero DataSize in order to determine the size buffer needed.\r
 \r
   @retval EFI_SUCCESS            The function completed successfully.\r
   @retval EFI_NOT_FOUND          The variable was not found.\r
@@ -648,7 +649,7 @@ EFI_STATUS
   IN     EFI_GUID                    *VendorGuid,\r
   OUT    UINT32                      *Attributes,    OPTIONAL\r
   IN OUT UINTN                       *DataSize,\r
-  OUT    VOID                        *Data\r
+  OUT    VOID                        *Data           OPTIONAL\r
   );\r
 \r
 /**\r