]>
Commit | Line | Data |
---|---|---|
878ddf1f | 1 | /*++\r |
2 | \r | |
3 | Copyright (c) 2004, Intel Corporation \r | |
4 | All rights reserved. This program and the accompanying materials \r | |
5 | are licensed and made available under the terms and conditions of the BSD License \r | |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name: \r | |
13 | \r | |
14 | UtilsMsgs.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | Prototypes for the EFI tools utility functions.\r | |
19 | \r | |
20 | --*/\r | |
21 | \r | |
22 | #ifndef _UTILS_MESSAGES_H_\r | |
23 | #define _UTILS_MESSAGES_H_\r | |
24 | \r | |
25 | STATUS\r | |
26 | GetUtilityStatus (\r | |
27 | VOID\r | |
28 | )\r | |
29 | ;\r | |
30 | \r | |
31 | //\r | |
32 | // If someone prints an error message and didn't specify a source file name,\r | |
33 | // then we print the utility name instead. However they must tell us the\r | |
34 | // utility name early on via this function.\r | |
35 | //\r | |
36 | VOID\r | |
37 | SetUtilityName (\r | |
38 | INT8 *ProgramName\r | |
39 | )\r | |
40 | ;\r | |
41 | \r | |
42 | void\r | |
43 | Error (\r | |
44 | INT8 *FileName,\r | |
45 | UINT32 LineNumber,\r | |
46 | UINT32 ErrorCode,\r | |
47 | INT8 *OffendingText,\r | |
48 | INT8 *MsgFmt,\r | |
49 | ...\r | |
50 | )\r | |
51 | ;\r | |
52 | \r | |
53 | void\r | |
54 | Warning (\r | |
55 | INT8 *FileName,\r | |
56 | UINT32 LineNumber,\r | |
57 | UINT32 ErrorCode,\r | |
58 | INT8 *OffendingText,\r | |
59 | INT8 *MsgFmt,\r | |
60 | ...\r | |
61 | )\r | |
62 | ;\r | |
63 | \r | |
64 | void\r | |
65 | DebugMsg (\r | |
66 | INT8 *FileName,\r | |
67 | UINT32 LineNumber,\r | |
68 | UINT32 MsgLevel,\r | |
69 | INT8 *OffendingText,\r | |
70 | INT8 *MsgFmt,\r | |
71 | ...\r | |
72 | )\r | |
73 | ;\r | |
74 | \r | |
75 | void\r | |
76 | SetDebugMsgMask (\r | |
77 | UINT32 MsgMask\r | |
78 | )\r | |
79 | ;\r | |
80 | \r | |
81 | void\r | |
82 | ParserSetPosition (\r | |
83 | INT8 *SourceFileName,\r | |
84 | UINT32 LineNum\r | |
85 | )\r | |
86 | ;\r | |
87 | \r | |
88 | void\r | |
89 | ParserError (\r | |
90 | UINT32 ErrorCode,\r | |
91 | INT8 *OffendingText,\r | |
92 | INT8 *MsgFmt,\r | |
93 | ...\r | |
94 | )\r | |
95 | ;\r | |
96 | \r | |
97 | void\r | |
98 | ParserWarning (\r | |
99 | UINT32 ErrorCode,\r | |
100 | INT8 *OffendingText,\r | |
101 | INT8 *MsgFmt,\r | |
102 | ...\r | |
103 | )\r | |
104 | ;\r | |
105 | \r | |
106 | #endif\r |