]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Sample/Tools/Source/GuidChk/UtilsMsgs.h
Add in the 1st version of ECP.
[mirror_edk2.git] / EdkCompatibilityPkg / Sample / Tools / Source / GuidChk / UtilsMsgs.h
diff --git a/EdkCompatibilityPkg/Sample/Tools/Source/GuidChk/UtilsMsgs.h b/EdkCompatibilityPkg/Sample/Tools/Source/GuidChk/UtilsMsgs.h
new file mode 100644 (file)
index 0000000..5f6c701
--- /dev/null
@@ -0,0 +1,106 @@
+/*++\r
+\r
+Copyright (c) 2004, Intel Corporation                                                         \r
+All rights reserved. This program and the accompanying materials                          \r
+are licensed and made available under the terms and conditions of the BSD License         \r
+which accompanies this distribution.  The full text of the license may be found at        \r
+http://opensource.org/licenses/bsd-license.php                                            \r
+                                                                                          \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+\r
+Module Name:  \r
+\r
+  UtilsMsgs.h\r
+  \r
+Abstract:\r
+\r
+  Prototypes for the EFI tools utility functions.\r
+  \r
+--*/\r
+\r
+#ifndef _UTILS_MESSAGES_H_\r
+#define _UTILS_MESSAGES_H_\r
+\r
+STATUS\r
+GetUtilityStatus (\r
+  VOID\r
+  )\r
+;\r
+\r
+//\r
+// If someone prints an error message and didn't specify a source file name,\r
+// then we print the utility name instead. However they must tell us the\r
+// utility name early on via this function.\r
+//\r
+VOID\r
+SetUtilityName (\r
+  INT8 *ProgramName\r
+  )\r
+;\r
+\r
+void\r
+Error (\r
+  INT8    *FileName,\r
+  UINT32  LineNumber,\r
+  UINT32  ErrorCode,\r
+  INT8    *OffendingText,\r
+  INT8    *MsgFmt,\r
+  ...\r
+  )\r
+;\r
+\r
+void\r
+Warning (\r
+  INT8    *FileName,\r
+  UINT32  LineNumber,\r
+  UINT32  ErrorCode,\r
+  INT8    *OffendingText,\r
+  INT8    *MsgFmt,\r
+  ...\r
+  )\r
+;\r
+\r
+void\r
+DebugMsg (\r
+  INT8    *FileName,\r
+  UINT32  LineNumber,\r
+  UINT32  MsgLevel,\r
+  INT8    *OffendingText,\r
+  INT8    *MsgFmt,\r
+  ...\r
+  )\r
+;\r
+\r
+void\r
+SetDebugMsgMask (\r
+  UINT32    MsgMask\r
+  )\r
+;\r
+\r
+void\r
+ParserSetPosition (\r
+  INT8    *SourceFileName,\r
+  UINT32  LineNum\r
+  )\r
+;\r
+\r
+void\r
+ParserError (\r
+  UINT32  ErrorCode,\r
+  INT8    *OffendingText,\r
+  INT8    *MsgFmt,\r
+  ...\r
+  )\r
+;\r
+\r
+void\r
+ParserWarning (\r
+  UINT32  ErrorCode,\r
+  INT8    *OffendingText,\r
+  INT8    *MsgFmt,\r
+  ...\r
+  )\r
+;\r
+\r
+#endif\r