diff options
author | lzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-06-16 10:09:38 +0000 |
---|---|---|
committer | lzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-06-16 10:09:38 +0000 |
commit | 8a18c8c24ed1443c73fb4fd10255b9eba8347514 (patch) | |
tree | 04c68f742efcf4d6b38894200726e23930d53c50 | |
parent | 044a53c12ad2c893e572368b1b965fff18598f9b (diff) | |
download | edk2-platforms-8a18c8c24ed1443c73fb4fd10255b9eba8347514.tar.xz |
Update prototype name of Get()/Set() to EFI_AUTHENTICATION_INFO_PROTOCOL_GET/ EFI_AUTHENTICATION_INFO_PROTOCOL_SET,
remove star before ControllerHandle for Get()/Set() and add star before Buffer for Get().
Signed-off-by: lzeng14
Reviewed-by: lgao4
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11834 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | EdkCompatibilityPkg/Foundation/Efi/Protocol/AuthenticationInfo/AuthenticationInfo.h | 8 | ||||
-rw-r--r-- | MdePkg/Include/Protocol/AuthenticationInfo.h | 20 |
2 files changed, 15 insertions, 13 deletions
diff --git a/EdkCompatibilityPkg/Foundation/Efi/Protocol/AuthenticationInfo/AuthenticationInfo.h b/EdkCompatibilityPkg/Foundation/Efi/Protocol/AuthenticationInfo/AuthenticationInfo.h index 3583a8869f..dab330ded0 100644 --- a/EdkCompatibilityPkg/Foundation/Efi/Protocol/AuthenticationInfo/AuthenticationInfo.h +++ b/EdkCompatibilityPkg/Foundation/Efi/Protocol/AuthenticationInfo/AuthenticationInfo.h @@ -1,6 +1,6 @@ /*++
-Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2008 - 2011, 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
which accompanies this distribution. The full text of the license may be found at
@@ -38,8 +38,8 @@ typedef EFI_STATUS
(EFIAPI *EFI_AUTHENTICATION_INFO_PROTOCOL_GET) (
IN EFI_AUTHENTICATION_INFO_PROTOCOL *This,
- IN EFI_HANDLE *ControllerHandle,
- OUT VOID *Buffer
+ IN EFI_HANDLE ControllerHandle,
+ OUT VOID **Buffer
);
/*++
@@ -69,7 +69,7 @@ typedef EFI_STATUS
(EFIAPI *EFI_AUTHENTICATION_INFO_PROTOCOL_SET) (
IN EFI_AUTHENTICATION_INFO_PROTOCOL *This,
- IN EFI_HANDLE *ControllerHandle,
+ IN EFI_HANDLE ControllerHandle,
IN VOID *Buffer
);
/*++
diff --git a/MdePkg/Include/Protocol/AuthenticationInfo.h b/MdePkg/Include/Protocol/AuthenticationInfo.h index 538eb10534..3530aabb90 100644 --- a/MdePkg/Include/Protocol/AuthenticationInfo.h +++ b/MdePkg/Include/Protocol/AuthenticationInfo.h @@ -3,7 +3,7 @@ This protocol is used on any device handle to obtain authentication information
associated with the physical or logical device.
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2011, 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
@@ -145,7 +145,9 @@ typedef struct { @param[in] This The pointer to the EFI_AUTHENTICATION_INFO_PROTOCOL.
@param[in] ControllerHandle The handle to the Controller.
- @param[out] Buffer The pointer to the authentication information.
+ @param[out] Buffer The pointer to the authentication information. This function is
+ responsible for allocating the buffer and it is the caller's
+ responsibility to free buffer when the caller is finished with buffer.
@retval EFI_SUCCESS Successfully retrieved authentication information
for the given ControllerHandle.
@@ -157,10 +159,10 @@ typedef struct { **/
typedef
EFI_STATUS
-(EFIAPI *EFI_AUTHENTICATION_PROTOCOL_INFO_GET)(
+(EFIAPI *EFI_AUTHENTICATION_INFO_PROTOCOL_GET)(
IN EFI_AUTHENTICATION_INFO_PROTOCOL *This,
- IN EFI_HANDLE *ControllerHandle,
- OUT VOID *Buffer
+ IN EFI_HANDLE ControllerHandle,
+ OUT VOID **Buffer
);
/**
@@ -181,9 +183,9 @@ EFI_STATUS **/
typedef
EFI_STATUS
-(EFIAPI *EFI_AUTHENTICATION_PROTOCOL_INFO_SET)(
+(EFIAPI *EFI_AUTHENTICATION_INFO_PROTOCOL_SET)(
IN EFI_AUTHENTICATION_INFO_PROTOCOL *This,
- IN EFI_HANDLE *ControllerHandle,
+ IN EFI_HANDLE ControllerHandle,
IN VOID *Buffer
);
@@ -192,8 +194,8 @@ EFI_STATUS /// information associated with the physical or logical device.
///
struct _EFI_AUTHENTICATION_INFO_PROTOCOL {
- EFI_AUTHENTICATION_PROTOCOL_INFO_GET Get;
- EFI_AUTHENTICATION_PROTOCOL_INFO_SET Set;
+ EFI_AUTHENTICATION_INFO_PROTOCOL_GET Get;
+ EFI_AUTHENTICATION_INFO_PROTOCOL_SET Set;
};
extern EFI_GUID gEfiAuthenticationInfoProtocolGuid;
|