]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Library/PeCoffExtraActionLib.h
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Include / Library / PeCoffExtraActionLib.h
CommitLineData
27b2d249 1/** @file\r
727fb9b1 2 Provides services to perform additional actions when a PE/COFF image is loaded\r
9095d37b 3 or unloaded. This is useful for environment where symbols need to be loaded\r
727fb9b1 4 and unloaded to support source level debugging.\r
27b2d249 5\r
9095d37b 6 Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
9344f092 7 SPDX-License-Identifier: BSD-2-Clause-Patent\r
27b2d249 8\r
9**/\r
10\r
11#ifndef __PE_COFF_EXTRA_ACTION_LIB_H__\r
12#define __PE_COFF_EXTRA_ACTION_LIB_H__\r
727fb9b1 13\r
27b2d249 14#include <Library/PeCoffLib.h>\r
727fb9b1 15\r
27b2d249 16/**\r
727fb9b1 17 Performs additional actions after a PE/COFF image has been loaded and relocated.\r
27b2d249 18\r
727fb9b1 19 If ImageContext is NULL, then ASSERT().\r
20\r
21 @param ImageContext Pointer to the image context structure that describes the\r
22 PE/COFF image that has already been loaded and relocated.\r
27b2d249 23\r
24**/\r
25VOID\r
26EFIAPI\r
27PeCoffLoaderRelocateImageExtraAction (\r
28 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext\r
29 );\r
30\r
31/**\r
727fb9b1 32 Performs additional actions just before a PE/COFF image is unloaded. Any resources\r
33 that were allocated by PeCoffLoaderRelocateImageExtraAction() must be freed.\r
9095d37b 34\r
27b2d249 35 If ImageContext is NULL, then ASSERT().\r
9095d37b 36\r
727fb9b1 37 @param ImageContext Pointer to the image context structure that describes the\r
38 PE/COFF image that is being unloaded.\r
27b2d249 39\r
40**/\r
41VOID\r
42EFIAPI\r
43PeCoffLoaderUnloadImageExtraAction (\r
44 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext\r
45 );\r
727fb9b1 46\r
27b2d249 47#endif\r