summaryrefslogtreecommitdiff
path: root/IntelFrameworkPkg/Include/Protocol/SectionExtraction.h
diff options
context:
space:
mode:
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-10 17:07:59 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-10 17:07:59 +0000
commitb4124f44f7d43ce69879f61fb910be00a6d2f7e9 (patch)
tree22b8a286a040f908e3b7be631d644d91f8ef892c /IntelFrameworkPkg/Include/Protocol/SectionExtraction.h
parentebdad7f865358e8153b769150d2918d4d333aad4 (diff)
downloadedk2-b4124f44f7d43ce69879f61fb910be00a6d2f7e9.zip
edk2-b4124f44f7d43ce69879f61fb910be00a6d2f7e9.tar.gz
edk2-b4124f44f7d43ce69879f61fb910be00a6d2f7e9.tar.bz2
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8509 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkPkg/Include/Protocol/SectionExtraction.h')
-rw-r--r--IntelFrameworkPkg/Include/Protocol/SectionExtraction.h33
1 files changed, 15 insertions, 18 deletions
diff --git a/IntelFrameworkPkg/Include/Protocol/SectionExtraction.h b/IntelFrameworkPkg/Include/Protocol/SectionExtraction.h
index bb2a868..18074ec 100644
--- a/IntelFrameworkPkg/Include/Protocol/SectionExtraction.h
+++ b/IntelFrameworkPkg/Include/Protocol/SectionExtraction.h
@@ -1,5 +1,5 @@
/** @file
- This file declares Section Extraction protocols.
+ This file declares Section Extraction Protocol.
This interface provides a means of decoding a set of sections into a linked list of
leaf sections. This provides for an extensible and flexible file format.
@@ -71,7 +71,10 @@ EFI_STATUS
@param This Indicates the EFI_SECTION_EXTRACTION_PROTOCOL instance.
@param SectionStreamHandle Indicates from which section stream to read.
- @param SectionType Pointer to an EFI_SECTION_TYPE.
+ @param SectionType Pointer to an EFI_SECTION_TYPE. SectionType == NULL, the contents of the
+ entire section stream are returned in Buffer.If SectionType is not NULL,
+ only the requested section is returned. EFI_SECTION_ALL matches all section
+ types and can be used as a wild card to extract all sections in order.
@param SectionDefinitionGuid Pointer to an EFI_GUID.If SectionType ==
EFI_SECTION_GUID_DEFINED, SectionDefinitionGuid indicates what section GUID
to search for.If SectionType !=EFI_SECTION_GUID_DEFINED, then
@@ -135,25 +138,19 @@ EFI_STATUS
//
// Protocol definition
//
-/**
- @par Protocol Description:
- The Section Extraction Protocol provides a simple method of extracting
- sections from arbitrarily complex files.
-
- @param OpenSectionStream
- Takes a bounded stream of sections and returns a section stream handle.
-
- @param GetSection
- Given a section stream handle, retrieves the requested section and
- meta-data from the section stream.
-
- @param CloseSectionStream
- Given a section stream handle, closes the section stream.
-
-**/
struct _EFI_SECTION_EXTRACTION_PROTOCOL {
+///
+/// Takes a bounded stream of sections and returns a section stream handle.
+///
EFI_OPEN_SECTION_STREAM OpenSectionStream;
+///
+/// Given a section stream handle, retrieves the requested section and
+/// meta-data from the section stream.
+///
EFI_GET_SECTION GetSection;
+///
+/// Given a section stream handle, closes the section stream.
+///
EFI_CLOSE_SECTION_STREAM CloseSectionStream;
};