Home | History | Annotate | Download | only in GuidChk
      1 /*++
      2 
      3 Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>
      4 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   CommonUtils.h
     15 
     16 Abstract:
     17 
     18   Common utility defines and structure definitions.
     19 
     20 --*/
     21 
     22 #ifndef _COMMON_UTILS_H_
     23 #define _COMMON_UTILS_H_
     24 
     25 //
     26 // Basic types
     27 //
     28 typedef unsigned char UINT8;
     29 typedef char INT8;
     30 typedef unsigned short UINT16;
     31 typedef unsigned int UINT32;
     32 
     33 typedef UINT8 BOOLEAN;
     34 typedef UINT32 STATUS;
     35 
     36 #define TRUE            1
     37 #define FALSE           0
     38 
     39 #define STATUS_SUCCESS  0
     40 #define STATUS_WARNING  1
     41 #define STATUS_ERROR    2
     42 
     43 //
     44 // Linked list of strings
     45 //
     46 typedef struct _STRING_LIST {
     47   struct _STRING_LIST *Next;
     48   char                *Str;
     49 } STRING_LIST;
     50 
     51 int
     52 CreateGuidList (
     53   INT8    *OutFileName
     54   );
     55 
     56 #endif // #ifndef _COMMON_UTILS_H_
     57