]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
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 | |
5 | \r | |
6 | Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>\r | |
7 | This program and the accompanying materials\r | |
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 | |
19 | \r | |
20 | #include <Library/PeCoffLib.h>\r | |
21 | \r | |
22 | /**\r | |
23 | Performs additional actions after a PE/COFF image has been loaded and relocated.\r | |
24 | \r | |
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 | |
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 | |
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 | |
40 | \r | |
41 | If ImageContext is NULL, then ASSERT().\r | |
42 | \r | |
43 | @param ImageContext Pointer to the image context structure that describes the\r | |
44 | PE/COFF image that is being unloaded.\r | |
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 | |
52 | \r | |
53 | #endif\r |