]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/TianoTools/Common/SimpleFileParsing.h
ea1f5a0adce4393a3d30382c50a013ee298f1c85
[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 #include <Base.h>
23 #include <UefiBaseTypes.h>
24
25 #ifndef _SIMPLE_FILE_PARSING_H_
26 #define _SIMPLE_FILE_PARSING_H_
27
28 #define T_CHAR char
29
30 STATUS
31 SFPInit (
32 VOID
33 )
34 ;
35
36 STATUS
37 SFPOpenFile (
38 char *FileName
39 )
40 ;
41
42 BOOLEAN
43 SFPIsKeyword (
44 T_CHAR *Str
45 )
46 ;
47
48 BOOLEAN
49 SFPIsToken (
50 T_CHAR *Str
51 )
52 ;
53
54 BOOLEAN
55 SFPGetNextToken (
56 T_CHAR *Str,
57 unsigned int Len
58 )
59 ;
60
61 BOOLEAN
62 SFPGetGuidToken (
63 T_CHAR *Str,
64 UINT32 Len
65 )
66 ;
67
68 #define PARSE_GUID_STYLE_5_FIELDS 0
69
70 BOOLEAN
71 SFPGetGuid (
72 int GuidStyle,
73 EFI_GUID *Value
74 )
75 ;
76
77 BOOLEAN
78 SFPSkipToToken (
79 T_CHAR *Str
80 )
81 ;
82
83 BOOLEAN
84 SFPGetNumber (
85 unsigned int *Value
86 )
87 ;
88
89 BOOLEAN
90 SFPGetQuotedString (
91 T_CHAR *Str,
92 int Length
93 )
94 ;
95
96 BOOLEAN
97 SFPIsEOF (
98 VOID
99 )
100 ;
101
102 STATUS
103 SFPCloseFile (
104 VOID
105 )
106 ;
107
108 unsigned
109 int
110 SFPGetLineNumber (
111 VOID
112 )
113 ;
114
115 T_CHAR *
116 SFPGetFileName (
117 VOID
118 )
119 ;
120
121 #endif // #ifndef _SIMPLE_FILE_PARSING_H_