2 Header file for helper functions for parsing GuidedSectionTools.txt
4 Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #ifndef _EFI_PARSE_GUIDED_SECTION_TOOLS_H
10 #define _EFI_PARSE_GUIDED_SECTION_TOOLS_H
12 #include <Common/UefiBaseTypes.h>
15 // Functions declarations
19 ParseGuidedSectionToolsFile (
27 This function parses the tools_def.txt file. It returns a
28 EFI_HANDLE object which can be used for the other library
29 functions and should be passed to FreeParsedToolsDefHandle
30 to free resources when the tools_def.txt information is no
35 InputFile Path name of file to read
40 A non-NULL EFI_HANDLE otherwise
46 ParseGuidedSectionToolsMemoryFile (
47 IN EFI_HANDLE InputFile
54 This function parses the tools_def.txt file. It returns a
55 EFI_HANDLE object which can be used for the other library
56 functions and should be passed to FreeParsedToolsDefHandle
57 to free resources when the tools_def.txt information is no
62 InputFile Memory file image.
67 A non-NULL EFI_HANDLE otherwise
72 LookupGuidedSectionToolPath (
73 IN EFI_HANDLE ParsedGuidedSectionToolsHandle
,
74 IN EFI_GUID
*SectionGuid
81 This function looks up the appropriate tool to use for extracting
82 a GUID defined FV section.
86 ParsedGuidedSectionToolsHandle A parsed GUID section tools handle.
87 SectionGuid The GUID for the section.
91 NULL - if no tool is found or there is another error
92 Non-NULL - The tool to use to access the section contents. (The caller
93 must free the memory associated with this string.)
98 FreeParsedGuidedSectionToolsHandle (
99 IN EFI_HANDLE ParsedGuidedSectionToolsHandle
106 Frees resources that were allocated by ParseGuidedSectionToolsFile.
107 After freeing these resources, the information that was parsed
108 is no longer accessible.
112 ParsedToolDefHandle Handle returned from ParseGuidedSectionToolsFile