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