]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BasePeCoffExtraActionLibNull/PeCoffExtraActionLib.c
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BasePeCoffExtraActionLibNull / PeCoffExtraActionLib.c
1 /** @file
2 Null PE/Coff Extra Action library instances with empty functions.
3
4 Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #include <Base.h>
10 #include <Library/PeCoffExtraActionLib.h>
11 #include <Library/DebugLib.h>
12
13 /**
14 Performs additional actions after a PE/COFF image has been loaded and relocated.
15
16 If ImageContext is NULL, then ASSERT().
17
18 @param ImageContext The pointer to the image context structure that describes the
19 PE/COFF image that has already been loaded and relocated.
20
21 **/
22 VOID
23 EFIAPI
24 PeCoffLoaderRelocateImageExtraAction (
25 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext
26 )
27 {
28 ASSERT (ImageContext != NULL);
29 }
30
31 /**
32 Performs additional actions just before a PE/COFF image is unloaded. Any resources
33 that were allocated by PeCoffLoaderRelocateImageExtraAction() must be freed.
34
35 If ImageContext is NULL, then ASSERT().
36
37 @param ImageContext The pointer to the image context structure that describes the
38 PE/COFF image that is being unloaded.
39
40 **/
41 VOID
42 EFIAPI
43 PeCoffLoaderUnloadImageExtraAction (
44 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext
45 )
46 {
47 ASSERT (ImageContext != NULL);
48 }