]>
Commit | Line | Data |
---|---|---|
27b2d249 | 1 | /** @file\r |
727fb9b1 | 2 | Provides services to perform additional actions when a PE/COFF image is loaded\r |
3 | or unloaded. This is useful for environment where symbols need to be loaded \r | |
4 | and unloaded to support source level debugging.\r | |
27b2d249 | 5 | \r |
9df063a0 HT |
6 | Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>\r |
7 | This program and the accompanying materials\r | |
27b2d249 | 8 | are licensed and made available under the terms and conditions of the BSD License\r |
9 | which accompanies this distribution. The full text of the license may be found at\r | |
10 | http://opensource.org/licenses/bsd-license.php\r | |
11 | \r | |
12 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
13 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
14 | \r | |
15 | **/\r | |
16 | \r | |
17 | #ifndef __PE_COFF_EXTRA_ACTION_LIB_H__\r | |
18 | #define __PE_COFF_EXTRA_ACTION_LIB_H__\r | |
727fb9b1 | 19 | \r |
27b2d249 | 20 | #include <Library/PeCoffLib.h>\r |
727fb9b1 | 21 | \r |
27b2d249 | 22 | /**\r |
727fb9b1 | 23 | Performs additional actions after a PE/COFF image has been loaded and relocated.\r |
27b2d249 | 24 | \r |
727fb9b1 | 25 | If ImageContext is NULL, then ASSERT().\r |
26 | \r | |
27 | @param ImageContext Pointer to the image context structure that describes the\r | |
28 | PE/COFF image that has already been loaded and relocated.\r | |
27b2d249 | 29 | \r |
30 | **/\r | |
31 | VOID\r | |
32 | EFIAPI\r | |
33 | PeCoffLoaderRelocateImageExtraAction (\r | |
34 | IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext\r | |
35 | );\r | |
36 | \r | |
37 | /**\r | |
727fb9b1 | 38 | Performs additional actions just before a PE/COFF image is unloaded. Any resources\r |
39 | that were allocated by PeCoffLoaderRelocateImageExtraAction() must be freed.\r | |
27b2d249 | 40 | \r |
41 | If ImageContext is NULL, then ASSERT().\r | |
42 | \r | |
727fb9b1 | 43 | @param ImageContext Pointer to the image context structure that describes the\r |
44 | PE/COFF image that is being unloaded.\r | |
27b2d249 | 45 | \r |
46 | **/\r | |
47 | VOID\r | |
48 | EFIAPI\r | |
49 | PeCoffLoaderUnloadImageExtraAction (\r | |
50 | IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext\r | |
51 | );\r | |
727fb9b1 | 52 | \r |
27b2d249 | 53 | #endif\r |