TianoCore EDK2 master
Loading...
Searching...
No Matches
ParseConfigProfile.c File Reference

Go to the source code of this file.

Macros

#define MAX_LINE_LENGTH   512
 

Functions

EFI_STATUS ParseRecoveryDataFile (IN UINT8 *DataBuffer, IN UINTN BufferSize, IN OUT CONFIG_HEADER *ConfigHeader, IN OUT RECOVERY_CONFIG_DATA **RecoveryArray)
 

Detailed Description

Parse the INI configuration file and pass the information to the recovery driver so that the driver can perform recovery accordingly.

Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file ParseConfigProfile.c.

Macro Definition Documentation

◆ MAX_LINE_LENGTH

#define MAX_LINE_LENGTH   512

Definition at line 15 of file ParseConfigProfile.c.

Function Documentation

◆ ParseRecoveryDataFile()

EFI_STATUS ParseRecoveryDataFile ( IN UINT8 *  DataBuffer,
IN UINTN  BufferSize,
IN OUT CONFIG_HEADER ConfigHeader,
IN OUT RECOVERY_CONFIG_DATA **  RecoveryArray 
)

Parse Config data file to get the updated data array.

Parameters
[in]DataBufferConfig raw file buffer.
[in]BufferSizeSize of raw buffer.
[in,out]ConfigHeaderPointer to the config header.
[in,out]RecoveryArrayPointer to the config of recovery data.
Return values
EFI_NOT_FOUNDNo config data is found.
EFI_OUT_OF_RESOURCESNo enough memory is allocated.
EFI_SUCCESSParse the config file successfully.

Definition at line 31 of file ParseConfigProfile.c.