]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Sample/Tools/Source/GuidChk/CommonUtils.h
Add in the 1st version of ECP.
[mirror_edk2.git] / EdkCompatibilityPkg / Sample / Tools / Source / GuidChk / CommonUtils.h
diff --git a/EdkCompatibilityPkg/Sample/Tools/Source/GuidChk/CommonUtils.h b/EdkCompatibilityPkg/Sample/Tools/Source/GuidChk/CommonUtils.h
new file mode 100644 (file)
index 0000000..f7a331e
--- /dev/null
@@ -0,0 +1,57 @@
+/*++\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
+  CommonUtils.h\r
+  \r
+Abstract:\r
+\r
+  Common utility defines and structure definitions.\r
+  \r
+--*/\r
+\r
+#ifndef _COMMON_UTILS_H_\r
+#define _COMMON_UTILS_H_\r
+\r
+//\r
+// Basic types\r
+//\r
+typedef unsigned char UINT8;\r
+typedef char INT8;\r
+typedef unsigned short UINT16;\r
+typedef unsigned int UINT32;\r
+\r
+typedef UINT8 BOOLEAN;\r
+typedef UINT32 STATUS;\r
+\r
+#define TRUE            1\r
+#define FALSE           0\r
+\r
+#define STATUS_SUCCESS  0\r
+#define STATUS_WARNING  1\r
+#define STATUS_ERROR    2\r
+\r
+//\r
+// Linked list of strings\r
+//\r
+typedef struct _STRING_LIST {\r
+  struct _STRING_LIST *Next;\r
+  char                *Str;\r
+} STRING_LIST;\r
+\r
+int\r
+CreateGuidList (\r
+  INT8    *OutFileName\r
+  )\r
+;\r
+\r
+#endif // #ifndef _COMMON_UTILS_H_\r