From a73480f6f2e211947ac19ef049adcba6f50bb655 Mon Sep 17 00:00:00 2001 From: qwang12 Date: Fri, 6 Jul 2007 15:19:20 +0000 Subject: Enable Intel IPF compilation for MdePkg. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3130 6f19259b-4bc3-4df7-8a09-765794883524 --- .../UefiDevicePathLib.c | 2 ++ .../UefiDevicePathLibInternal.h | 39 ++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibInternal.h (limited to 'MdePkg/Library/UefiDevicePathLibDevicePathProtocol') diff --git a/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c b/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c index 6a587ab1c5..0b926e27e6 100644 --- a/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c +++ b/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLib.c @@ -33,6 +33,8 @@ #include #include +#include "UefiDevicePathLibInternal.h" + STATIC EFI_DEVICE_PATH_UTILITIES_PROTOCOL *mDevicePathUtilities = NULL; /** diff --git a/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibInternal.h b/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibInternal.h new file mode 100644 index 0000000000..9d1f66936f --- /dev/null +++ b/MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibInternal.h @@ -0,0 +1,39 @@ +/** @file + Internal Header file for UEFI Device Path Library. + + Copyright (c) 2006, 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 + http://opensource.org/licenses/bsd-license.php + + THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, + WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +**/ + +#ifndef _UEFI_DEVICEPATH_LIB_INTERNAL_H_ +#define _UEFI_DEVICEPATH_LIB_INTERNAL_H_ + + +/** + The constructor function caches the pointer to DevicePathUtilites protocol. + + The constructor function locates DevicePathUtilities protocol from protocol database. + It will ASSERT() if that operation fails and it will always return EFI_SUCCESS. + + @param ImageHandle The firmware allocated handle for the EFI image. + @param SystemTable A pointer to the EFI System Table. + + @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS. + +**/ +EFI_STATUS +EFIAPI +DevicePathLibConstructor ( + IN EFI_HANDLE ImageHandle, + IN EFI_SYSTEM_TABLE *SystemTable + ) +; + +#endif -- cgit v1.2.3