]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/UefiDriverModelLib/UefiDriverModelLib.c
add EFIAPI for those constructor funcitons declaration
[mirror_edk2.git] / MdePkg / Library / UefiDriverModelLib / UefiDriverModelLib.c
index 4550937efdae6977674000c0aff54d75b49b7d69..5795e5ae50d459d2ba85c068c98617d9b6f3a386 100644 (file)
@@ -2,13 +2,13 @@
   EFI Driver Model Library.\r
 \r
   Copyright (c) 2006, Intel Corporation<BR>\r
-  All rights reserved. This program and the accompanying materials                          \r
-  are licensed and made available under the terms and conditions of the BSD License         \r
-  which accompanies this distribution.  The full text of the license may be found at        \r
-  http://opensource.org/licenses/bsd-license.php                                            \r
+  All rights reserved. This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php\r
 \r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
   Module Name:  UefiDriverModelLib.c\r
 \r
 /**\r
   The constructor function installs the standard EFI Driver Model Protocols.\r
 \r
-  @param[in] ImageHandle The firmware allocated handle for the EFI image.  \r
+  @param[in] ImageHandle The firmware allocated handle for the EFI image.\r
   @param[in] SystemTable A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS The constructor always return EFI_SUCCESS.\r
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 UefiDriverModelLibConstructor (\r
   IN EFI_HANDLE        ImageHandle,\r
   IN EFI_SYSTEM_TABLE  *SystemTable\r
@@ -59,7 +60,7 @@ UefiDriverModelLibConstructor (
 \r
     //\r
     // Check for all 8 possible combinations of the ComponentName, DriverConfiguration, and DriverDiagnostics Protocol\r
-    // These are all checks against const pointers, so the optimizing compiler will only select one of the \r
+    // These are all checks against const pointers, so the optimizing compiler will only select one of the\r
     // calls to InstallMultipleProtocolInterfaces()\r
     //\r
     if (_gDriverModelProtocolList[0].DriverDiagnostics == NULL) {\r
@@ -230,13 +231,14 @@ UefiDriverModelLibConstructor (
 /**\r
   The destructor function uninstalls the standard EFI Driver Model Protocols.\r
 \r
-  @param[in] ImageHandle The firmware allocated handle for the EFI image.  \r
+  @param[in] ImageHandle The firmware allocated handle for the EFI image.\r
   @param[in] SystemTable A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS The destructor always return EFI_SUCCESS.\r
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 UefiDriverModelLibDestructor (\r
   IN EFI_HANDLE        ImageHandle,\r
   IN EFI_SYSTEM_TABLE  *SystemTable\r
@@ -269,7 +271,7 @@ UefiDriverModelLibDestructor (
 \r
     //\r
     // Check for all 8 possible combinations of the ComponentName, DriverConfiguration, and DriverDiagnostics Protocol\r
-    // These are all checks against const pointers, so the optimizing compiler will only select one of the \r
+    // These are all checks against const pointers, so the optimizing compiler will only select one of the\r
     // calls to InstallMultipleProtocolInterfaces()\r
     //\r
     if (_gDriverModelProtocolList[0].DriverDiagnostics == NULL) {\r