You've already forked slimbootloader
mirror of
https://github.com/Dasharo/slimbootloader.git
synced 2026-03-06 15:26:20 -08:00
6f8c44b375
Synced up MdePkg, IntelFsp2Pkg and BaseTools to EDK2 stable tag edk2-stable201905. There are several changes for MdePkg and BaseTools. MdePkg: - Support light print to reduce SBL size MdePkg\Library\BasePrintLib\PrintLibInternal.c MdePkg\Include\Library\DebugLib.h - TCG TPM2 spec changes and remove dependencies MdePkg\Include\IndustryStandard\UefiTcgPlatform.h MdePkg\Include\IndustryStandard\Tpm2Acpi.h - Use old NVM protocol file MdePkg\Include\Protocol\NvmExpressPassthru.h - Removed unused files BaseTools: - Added LZ4 support - Removed unused files Signed-off-by: Maurice Ma <maurice.ma@intel.com>
105 lines
1.1 KiB
C
105 lines
1.1 KiB
C
/** @file
|
|
Function prototypes and defines for the simple file parsing routines.
|
|
|
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
**/
|
|
|
|
#ifndef _SIMPLE_FILE_PARSING_H_
|
|
#define _SIMPLE_FILE_PARSING_H_
|
|
|
|
#include <Common/UefiBaseTypes.h>
|
|
|
|
STATUS
|
|
SFPInit (
|
|
VOID
|
|
)
|
|
;
|
|
|
|
STATUS
|
|
SFPOpenFile (
|
|
CHAR8 *FileName
|
|
)
|
|
;
|
|
|
|
BOOLEAN
|
|
SFPIsKeyword (
|
|
CHAR8 *Str
|
|
)
|
|
;
|
|
|
|
BOOLEAN
|
|
SFPIsToken (
|
|
CHAR8 *Str
|
|
)
|
|
;
|
|
|
|
BOOLEAN
|
|
SFPGetNextToken (
|
|
CHAR8 *Str,
|
|
UINTN Len
|
|
)
|
|
;
|
|
|
|
BOOLEAN
|
|
SFPGetGuidToken (
|
|
CHAR8 *Str,
|
|
UINT32 Len
|
|
)
|
|
;
|
|
|
|
#define PARSE_GUID_STYLE_5_FIELDS 0
|
|
|
|
BOOLEAN
|
|
SFPGetGuid (
|
|
INTN GuidStyle,
|
|
EFI_GUID *Value
|
|
)
|
|
;
|
|
|
|
BOOLEAN
|
|
SFPSkipToToken (
|
|
CHAR8 *Str
|
|
)
|
|
;
|
|
|
|
BOOLEAN
|
|
SFPGetNumber (
|
|
UINTN *Value
|
|
)
|
|
;
|
|
|
|
BOOLEAN
|
|
SFPGetQuotedString (
|
|
CHAR8 *Str,
|
|
INTN Length
|
|
)
|
|
;
|
|
|
|
BOOLEAN
|
|
SFPIsEOF (
|
|
VOID
|
|
)
|
|
;
|
|
|
|
STATUS
|
|
SFPCloseFile (
|
|
VOID
|
|
)
|
|
;
|
|
|
|
UINTN
|
|
SFPGetLineNumber (
|
|
VOID
|
|
)
|
|
;
|
|
|
|
CHAR8 *
|
|
SFPGetFileName (
|
|
VOID
|
|
)
|
|
;
|
|
|
|
#endif // #ifndef _SIMPLE_FILE_PARSING_H_
|