X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=EdkCompatibilityPkg%2FSample%2FTools%2FSource%2FCommon%2FParseInf.h;h=3d5eb5c34fb2e031e70f0ca81966b67f2c1f2e53;hp=7dba8f8fdcc36e632a211986d554c09ece38e2f5;hb=3e99020dbf0a159e34b84e7ae9125f2e368d5390;hpb=68bb5ce77e51cf35791e46f2202e36da97e5e6be diff --git a/EdkCompatibilityPkg/Sample/Tools/Source/Common/ParseInf.h b/EdkCompatibilityPkg/Sample/Tools/Source/Common/ParseInf.h index 7dba8f8fdc..3d5eb5c34f 100644 --- a/EdkCompatibilityPkg/Sample/Tools/Source/Common/ParseInf.h +++ b/EdkCompatibilityPkg/Sample/Tools/Source/Common/ParseInf.h @@ -1,6 +1,6 @@ /*++ -Copyright (c) 2004, Intel Corporation. All rights reserved.
+Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -124,6 +124,42 @@ Returns: EFI_NOT_FOUND Section/Token/Value not found. --*/ + +EFI_STATUS +FindTokenInstanceInSection ( + IN MEMORY_FILE *InputFile, + IN CHAR8 *Section, + IN UINTN Instance, + OUT CHAR8 *Token, + OUT CHAR8 *Value + ) +; +/*++ + +Routine Description: + + Finds the Instance-th token in a section. + +Arguments: + + InputFile Memory file image. + Section The section to search for, a string within []. + Instance Specify the Instance-th token to search for, starting from zero + Token The token name to return. Caller should allocate the buffer. + Must be _MAX_PATH in size. + Value The token value to return. Caller should allocate the buffer. + Must be _MAX_PATH in size. + +Returns: + + EFI_SUCCESS Token and Value found. + EFI_ABORTED Format error detected in INF file. + EFI_INVALID_PARAMETER Input argument was null. + EFI_LOAD_ERROR Error reading from the file. + EFI_NOT_FOUND Section/Token/Value not found. + +--*/ + EFI_STATUS StringToGuid ( IN CHAR8 *AsciiGuidBuffer,