xref: /openbmc/libcper/cper-utils.h (revision 1b0b00e3)
1 #ifndef CPER_UTILS_H
2 #define CPER_UTILS_H
3 
4 #define GUID_STRING_LENGTH 30
5 #define TIMESTAMP_LENGTH 24
6 
7 json_object* revision_to_ir(UINT16 revision);
8 const char* severity_to_string(UINT8 severity);
9 void guid_to_string(char* out, EFI_GUID* guid);
10 int guid_equal(EFI_GUID* a, EFI_GUID* b);
11 
12 //The available severity types for CPER.
13 extern const char* CPER_SEVERITY_TYPES[4];
14 
15 #endif