]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Sample/Tools/Source/Common/SimpleFileParsing.h
clean up the un-suitable ';' location when declaring the functions. The regular is...
[mirror_edk2.git] / EdkCompatibilityPkg / Sample / Tools / Source / Common / SimpleFileParsing.h
CommitLineData
3eb9473e 1/*++\r
2\r
3Copyright (c) 2004, 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#define T_CHAR char\r
26\r
27STATUS\r
28SFPInit (\r
29 VOID\r
e00e1d46 30 );\r
3eb9473e 31\r
32STATUS\r
33SFPOpenFile (\r
34 char *FileName\r
e00e1d46 35 );\r
3eb9473e 36\r
37BOOLEAN\r
38SFPIsKeyword (\r
39 T_CHAR *Str\r
e00e1d46 40 );\r
3eb9473e 41\r
42BOOLEAN\r
43SFPIsToken (\r
44 T_CHAR *Str\r
e00e1d46 45 );\r
3eb9473e 46\r
47BOOLEAN\r
48SFPGetNextToken (\r
49 T_CHAR *Str,\r
50 unsigned int Len\r
e00e1d46 51 );\r
3eb9473e 52\r
53BOOLEAN\r
54SFPGetGuidToken (\r
55 T_CHAR *Str,\r
56 UINT32 Len\r
e00e1d46 57 );\r
3eb9473e 58\r
59#define PARSE_GUID_STYLE_5_FIELDS 0\r
60\r
61BOOLEAN\r
62SFPGetGuid (\r
63 int GuidStyle,\r
64 EFI_GUID *Value\r
e00e1d46 65 );\r
3eb9473e 66\r
67BOOLEAN\r
68SFPSkipToToken (\r
69 T_CHAR *Str\r
e00e1d46 70 );\r
3eb9473e 71\r
72BOOLEAN\r
73SFPGetNumber (\r
74 unsigned int *Value\r
e00e1d46 75 );\r
3eb9473e 76\r
77BOOLEAN\r
78SFPGetQuotedString (\r
79 T_CHAR *Str,\r
80 int Length\r
e00e1d46 81 );\r
3eb9473e 82\r
83BOOLEAN\r
84SFPIsEOF (\r
85 VOID\r
e00e1d46 86 );\r
3eb9473e 87\r
88STATUS\r
89SFPCloseFile (\r
90 VOID\r
e00e1d46 91 );\r
3eb9473e 92\r
93unsigned\r
94int\r
95SFPGetLineNumber (\r
96 VOID\r
e00e1d46 97 );\r
3eb9473e 98\r
99T_CHAR *\r
100SFPGetFileName (\r
101 VOID\r
e00e1d46 102 );\r
3eb9473e 103\r
104#endif // #ifndef _SIMPLE_FILE_PARSING_H_\r