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 ParseUpdateDataFile (IN UINT8 *DataBuffer, IN UINTN BufferSize, IN OUT CONFIG_HEADER *ConfigHeader, IN OUT UPDATE_CONFIG_DATA **UpdateArray)
 

Detailed Description

Parse the INI configuration file and pass the information to the update driver so that the driver can perform update 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

◆ ParseUpdateDataFile()

EFI_STATUS ParseUpdateDataFile ( IN UINT8 *  DataBuffer,
IN UINTN  BufferSize,
IN OUT CONFIG_HEADER ConfigHeader,
IN OUT UPDATE_CONFIG_DATA **  UpdateArray 
)

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]UpdateArrayPointer to the config of update 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.