3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 GUIDed section extraction protocol implementation.
19 This contains the common constructor of GUIDed section
20 extraction protocol. GUID specific implementation of each
21 GUIDed section extraction protocol can be found in other
22 files under the same directory.
24 Please refer to the Tiano File Image Format Specification,
33 #include "Common/FirmwareFileSystem.h"
34 #include "GuidedSection.h"
37 GuidedSectionExtractionProtocolConstructor (
38 OUT EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL
**GuidedSep
,
39 IN EFI_EXTRACT_GUIDED_SECTION ExtractSection
45 Constructor for the GUIDed section extraction protocol. Initializes
50 This Instance to construct
54 EFI_SUCCESS: Instance initialized.
57 // TODO: GuidedSep - add argument and description to function comment
58 // TODO: ExtractSection - add argument and description to function comment
59 // TODO: EFI_OUT_OF_RESOURCES - add return value to function comment
64 Status
= gBS
->AllocatePool (
66 sizeof (EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL
),
69 if (EFI_ERROR (Status
)) {
70 return EFI_OUT_OF_RESOURCES
;
73 (*GuidedSep
)->ExtractSection
= ExtractSection
;