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