From 5cba121d30d3edda6e6145eb41aabcd767e5b69c Mon Sep 17 00:00:00 2001 From: vanjeff Date: Tue, 8 Sep 2009 07:29:48 +0000 Subject: [PATCH] add modifier EFIAPI for library interfaces. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9246 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Include/Library/DevicePathLib.h | 11 ++++++++++- MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c | 11 ++++++++++- .../UefiDevicePathLib.c | 11 ++++++++++- 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/MdePkg/Include/Library/DevicePathLib.h b/MdePkg/Include/Library/DevicePathLib.h index eb9de5a873..4012472675 100644 --- a/MdePkg/Include/Library/DevicePathLib.h +++ b/MdePkg/Include/Library/DevicePathLib.h @@ -6,7 +6,7 @@ path nodes make use of the ReadUnaligned16() and WriteUnaligned16() functions from the Base Library, so this library class has an implied dependency on the Base Library. -Copyright (c) 2006 - 2008, Intel Corporation
+Copyright (c) 2006 - 2009, Intel Corporation
All rights reserved. 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 @@ -35,6 +35,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ UINT8 +EFIAPI DevicePathType ( IN CONST VOID *Node ); @@ -52,6 +53,7 @@ DevicePathType ( **/ UINT8 +EFIAPI DevicePathSubType ( IN CONST VOID *Node ); @@ -72,6 +74,7 @@ DevicePathSubType ( **/ UINTN +EFIAPI DevicePathNodeLength ( IN CONST VOID *Node ); @@ -89,6 +92,7 @@ DevicePathNodeLength ( **/ EFI_DEVICE_PATH_PROTOCOL * +EFIAPI NextDevicePathNode ( IN CONST VOID *Node ); @@ -111,6 +115,7 @@ NextDevicePathNode ( **/ BOOLEAN +EFIAPI IsDevicePathEndType ( IN CONST VOID *Node ); @@ -130,6 +135,7 @@ IsDevicePathEndType ( **/ BOOLEAN +EFIAPI IsDevicePathEnd ( IN CONST VOID *Node ); @@ -149,6 +155,7 @@ IsDevicePathEnd ( **/ BOOLEAN +EFIAPI IsDevicePathEndInstance ( IN CONST VOID *Node ); @@ -171,6 +178,7 @@ IsDevicePathEndInstance ( **/ UINT16 +EFIAPI SetDevicePathNodeLength ( IN OUT VOID *Node, IN UINTN Length @@ -193,6 +201,7 @@ SetDevicePathNodeLength ( **/ VOID +EFIAPI SetDevicePathEndNode ( OUT VOID *Node ); diff --git a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c index 5aad01f993..755e42e189 100644 --- a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c +++ b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c @@ -8,7 +8,7 @@ environment varibles. Multi-instance device paths should never be placed on a Handle. - Copyright (c) 2006 - 2008, Intel Corporation + Copyright (c) 2006 - 2009, Intel Corporation All rights reserved. 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 @@ -54,6 +54,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED CONST EFI_DEVICE_PATH_PROTOCOL mUefiDevicePathLib **/ UINT8 +EFIAPI DevicePathType ( IN CONST VOID *Node ) @@ -75,6 +76,7 @@ DevicePathType ( **/ UINT8 +EFIAPI DevicePathSubType ( IN CONST VOID *Node ) @@ -99,6 +101,7 @@ DevicePathSubType ( **/ UINTN +EFIAPI DevicePathNodeLength ( IN CONST VOID *Node ) @@ -120,6 +123,7 @@ DevicePathNodeLength ( **/ EFI_DEVICE_PATH_PROTOCOL * +EFIAPI NextDevicePathNode ( IN CONST VOID *Node ) @@ -146,6 +150,7 @@ NextDevicePathNode ( **/ BOOLEAN +EFIAPI IsDevicePathEndType ( IN CONST VOID *Node ) @@ -169,6 +174,7 @@ IsDevicePathEndType ( **/ BOOLEAN +EFIAPI IsDevicePathEnd ( IN CONST VOID *Node ) @@ -192,6 +198,7 @@ IsDevicePathEnd ( **/ BOOLEAN +EFIAPI IsDevicePathEndInstance ( IN CONST VOID *Node ) @@ -218,6 +225,7 @@ IsDevicePathEndInstance ( **/ UINT16 +EFIAPI SetDevicePathNodeLength ( IN OUT VOID *Node, IN UINTN Length @@ -245,6 +253,7 @@ SetDevicePathNodeLength ( **/ VOID +EFIAPI SetDevicePathEndNode ( OUT VOID *Node ) diff --git a/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c b/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c index 9f9a470991..8d8fdeec5f 100644 --- a/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c +++ b/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c @@ -2,7 +2,7 @@ Library instance that implement UEFI Device Path Library class based on protocol gEfiDevicePathUtilitiesProtocolGuid. - Copyright (c) 2006 - 2008, Intel Corporation
+ Copyright (c) 2006 - 2009, Intel Corporation
All rights reserved. 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 @@ -84,6 +84,7 @@ DevicePathLibConstructor ( **/ UINT8 +EFIAPI DevicePathType ( IN CONST VOID *Node ) @@ -105,6 +106,7 @@ DevicePathType ( **/ UINT8 +EFIAPI DevicePathSubType ( IN CONST VOID *Node ) @@ -129,6 +131,7 @@ DevicePathSubType ( **/ UINTN +EFIAPI DevicePathNodeLength ( IN CONST VOID *Node ) @@ -150,6 +153,7 @@ DevicePathNodeLength ( **/ EFI_DEVICE_PATH_PROTOCOL * +EFIAPI NextDevicePathNode ( IN CONST VOID *Node ) @@ -176,6 +180,7 @@ NextDevicePathNode ( **/ BOOLEAN +EFIAPI IsDevicePathEndType ( IN CONST VOID *Node ) @@ -199,6 +204,7 @@ IsDevicePathEndType ( **/ BOOLEAN +EFIAPI IsDevicePathEnd ( IN CONST VOID *Node ) @@ -222,6 +228,7 @@ IsDevicePathEnd ( **/ BOOLEAN +EFIAPI IsDevicePathEndInstance ( IN CONST VOID *Node ) @@ -248,6 +255,7 @@ IsDevicePathEndInstance ( **/ UINT16 +EFIAPI SetDevicePathNodeLength ( IN OUT VOID *Node, IN UINTN Length @@ -275,6 +283,7 @@ SetDevicePathNodeLength ( **/ VOID +EFIAPI SetDevicePathEndNode ( OUT VOID *Node ) -- 2.39.2