]>
Commit | Line | Data |
---|---|---|
30fdf114 | 1 | /** @file\r |
97fa0ee9 | 2 | Function prototypes and defines for the simple file parsing routines.\r |
30fdf114 | 3 | \r |
97fa0ee9 | 4 | Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r |
40d841f6 | 5 | This program and the accompanying materials \r |
30fdf114 LG |
6 | are licensed and made available under the terms and conditions of the BSD License \r |
7 | which accompanies this distribution. The full text of the license may be found at \r | |
8 | http://opensource.org/licenses/bsd-license.php \r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
11 | WITHOUT 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 | |
20 | STATUS\r | |
21 | SFPInit (\r | |
22 | VOID\r | |
23 | )\r | |
24 | ;\r | |
25 | \r | |
26 | STATUS\r | |
27 | SFPOpenFile (\r | |
28 | CHAR8 *FileName\r | |
29 | )\r | |
30 | ;\r | |
31 | \r | |
32 | BOOLEAN\r | |
33 | SFPIsKeyword (\r | |
34 | CHAR8 *Str\r | |
35 | )\r | |
36 | ;\r | |
37 | \r | |
38 | BOOLEAN\r | |
39 | SFPIsToken (\r | |
40 | CHAR8 *Str\r | |
41 | )\r | |
42 | ;\r | |
43 | \r | |
44 | BOOLEAN\r | |
45 | SFPGetNextToken (\r | |
46 | CHAR8 *Str,\r | |
47 | UINTN Len\r | |
48 | )\r | |
49 | ;\r | |
50 | \r | |
51 | BOOLEAN\r | |
52 | SFPGetGuidToken (\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 | |
60 | BOOLEAN\r | |
61 | SFPGetGuid (\r | |
62 | INTN GuidStyle,\r | |
63 | EFI_GUID *Value\r | |
64 | )\r | |
65 | ;\r | |
66 | \r | |
67 | BOOLEAN\r | |
68 | SFPSkipToToken (\r | |
69 | CHAR8 *Str\r | |
70 | )\r | |
71 | ;\r | |
72 | \r | |
73 | BOOLEAN\r | |
74 | SFPGetNumber (\r | |
75 | UINTN *Value\r | |
76 | )\r | |
77 | ;\r | |
78 | \r | |
79 | BOOLEAN\r | |
80 | SFPGetQuotedString (\r | |
81 | CHAR8 *Str,\r | |
82 | INTN Length\r | |
83 | )\r | |
84 | ;\r | |
85 | \r | |
86 | BOOLEAN\r | |
87 | SFPIsEOF (\r | |
88 | VOID\r | |
89 | )\r | |
90 | ;\r | |
91 | \r | |
92 | STATUS\r | |
93 | SFPCloseFile (\r | |
94 | VOID\r | |
95 | )\r | |
96 | ;\r | |
97 | \r | |
98 | UINTN\r | |
99 | SFPGetLineNumber (\r | |
100 | VOID\r | |
101 | )\r | |
102 | ;\r | |
103 | \r | |
104 | CHAR8 *\r | |
105 | SFPGetFileName (\r | |
106 | VOID\r | |
107 | )\r | |
108 | ;\r | |
109 | \r | |
110 | #endif // #ifndef _SIMPLE_FILE_PARSING_H_\r |