xref: /openbmc/libcper/cper-utils.h (revision 3c43f743)
11b0b00e3SLawrence Tang #ifndef CPER_UTILS_H
21b0b00e3SLawrence Tang #define CPER_UTILS_H
31b0b00e3SLawrence Tang 
41b0b00e3SLawrence Tang #define GUID_STRING_LENGTH 30
51b0b00e3SLawrence Tang #define TIMESTAMP_LENGTH 24
61b0b00e3SLawrence Tang 
7*3c43f743SLawrence Tang json_object* integer_to_readable_pair(int value, int len, int keys[], const char* values[], const char* default_value);
81b0b00e3SLawrence Tang json_object* revision_to_ir(UINT16 revision);
91b0b00e3SLawrence Tang const char* severity_to_string(UINT8 severity);
101b0b00e3SLawrence Tang void guid_to_string(char* out, EFI_GUID* guid);
111b0b00e3SLawrence Tang int guid_equal(EFI_GUID* a, EFI_GUID* b);
121b0b00e3SLawrence Tang 
131b0b00e3SLawrence Tang //The available severity types for CPER.
141b0b00e3SLawrence Tang extern const char* CPER_SEVERITY_TYPES[4];
151b0b00e3SLawrence Tang 
161b0b00e3SLawrence Tang #endif