]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/Image/ImageFile.c
Remove the prototype of internal functions to avoid the sync efforts.
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / Image / ImageFile.c
index a95496f9c567707bfe84f965c4b695bd4c7bea94..4a8d1034a5412ef29dab2e7538ca56328e201174 100644 (file)
@@ -14,6 +14,36 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include "DxeMain.h"\r
 \r
+/**\r
+  Search a handle to a device on a specified device path that supports a specified protocol,\r
+  interface of that protocol on that handle is another output.\r
+\r
+  @param  Protocol               The protocol to search for\r
+  @param  FilePath               The specified device path\r
+  @param  Interface              Interface of the protocol on the handle\r
+  @param  Handle                 The handle to the device on the specified device\r
+                                 path that supports the protocol.\r
+\r
+  @return Status code.\r
+\r
+**/\r
+EFI_STATUS\r
+CoreDevicePathToInterface (\r
+  IN EFI_GUID                     *Protocol,\r
+  IN EFI_DEVICE_PATH_PROTOCOL     **FilePath,\r
+  OUT VOID                        **Interface,\r
+  OUT EFI_HANDLE                  *Handle\r
+  )\r
+{\r
+  EFI_STATUS                      Status;\r
+\r
+  Status = CoreLocateDevicePath (Protocol, FilePath, Handle);\r
+  if (!EFI_ERROR (Status)) {\r
+    Status = CoreHandleProtocol (*Handle, Protocol, Interface);\r
+  }\r
+  return Status;\r
+}\r
+\r
 \r
 /**\r
   Opens a file for (simple) reading.  The simple read abstraction\r
@@ -377,38 +407,6 @@ CoreReadImageFile (
   return EFI_SUCCESS;\r
 }\r
 \r
-\r
-/**\r
-  Search a handle to a device on a specified device path that supports a specified protocol,\r
-  interface of that protocol on that handle is another output.\r
-\r
-  @param  Protocol               The protocol to search for\r
-  @param  FilePath               The specified device path\r
-  @param  Interface              Interface of the protocol on the handle\r
-  @param  Handle                 The handle to the device on the specified device\r
-                                 path that supports the protocol.\r
-\r
-  @return Status code.\r
-\r
-**/\r
-EFI_STATUS\r
-CoreDevicePathToInterface (\r
-  IN EFI_GUID                     *Protocol,\r
-  IN EFI_DEVICE_PATH_PROTOCOL     **FilePath,\r
-  OUT VOID                        **Interface,\r
-  OUT EFI_HANDLE                  *Handle\r
-  )\r
-{\r
-  EFI_STATUS                      Status;\r
-\r
-  Status = CoreLocateDevicePath (Protocol, FilePath, Handle);\r
-  if (!EFI_ERROR (Status)) {\r
-    Status = CoreHandleProtocol (*Handle, Protocol, Interface);\r
-  }\r
-  return Status;\r
-}\r
-\r
-\r
 /**\r
   Helper function called as part of the code needed\r
   to allocate the proper sized buffer for various\r