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