]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/Source/C/Common/SimpleFileParsing.h
License header updated to match correct format.
[mirror_edk2.git] / BaseTools / Source / C / Common / SimpleFileParsing.h
CommitLineData
30fdf114 1/** @file\r
97fa0ee9 2Function prototypes and defines for the simple file parsing routines.\r
30fdf114 3\r
97fa0ee9 4Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r
40d841f6 5This program and the accompanying materials \r
30fdf114
LG
6are licensed and made available under the terms and conditions of the BSD License \r
7which accompanies this distribution. The full text of the license may be found at \r
8http://opensource.org/licenses/bsd-license.php \r
9 \r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
12\r
30fdf114
LG
13**/\r
14\r
15#ifndef _SIMPLE_FILE_PARSING_H_\r
16#define _SIMPLE_FILE_PARSING_H_\r
17\r
18#include <Common/UefiBaseTypes.h>\r
19\r
20STATUS\r
21SFPInit (\r
22 VOID\r
23 )\r
24;\r
25\r
26STATUS\r
27SFPOpenFile (\r
28 CHAR8 *FileName\r
29 )\r
30;\r
31\r
32BOOLEAN\r
33SFPIsKeyword (\r
34 CHAR8 *Str\r
35 )\r
36;\r
37\r
38BOOLEAN\r
39SFPIsToken (\r
40 CHAR8 *Str\r
41 )\r
42;\r
43\r
44BOOLEAN\r
45SFPGetNextToken (\r
46 CHAR8 *Str,\r
47 UINTN Len\r
48 )\r
49;\r
50\r
51BOOLEAN\r
52SFPGetGuidToken (\r
53 CHAR8 *Str,\r
54 UINT32 Len\r
55 )\r
56;\r
57\r
58#define PARSE_GUID_STYLE_5_FIELDS 0\r
59\r
60BOOLEAN\r
61SFPGetGuid (\r
62 INTN GuidStyle,\r
63 EFI_GUID *Value\r
64 )\r
65;\r
66\r
67BOOLEAN\r
68SFPSkipToToken (\r
69 CHAR8 *Str\r
70 )\r
71;\r
72\r
73BOOLEAN\r
74SFPGetNumber (\r
75 UINTN *Value\r
76 )\r
77;\r
78\r
79BOOLEAN\r
80SFPGetQuotedString (\r
81 CHAR8 *Str,\r
82 INTN Length\r
83 )\r
84;\r
85\r
86BOOLEAN\r
87SFPIsEOF (\r
88 VOID\r
89 )\r
90;\r
91\r
92STATUS\r
93SFPCloseFile (\r
94 VOID\r
95 )\r
96;\r
97\r
98UINTN\r
99SFPGetLineNumber (\r
100 VOID\r
101 )\r
102;\r
103\r
104CHAR8 *\r
105SFPGetFileName (\r
106 VOID\r
107 )\r
108;\r
109\r
110#endif // #ifndef _SIMPLE_FILE_PARSING_H_\r