| #ifndef CPER_SECTION_H | |
| #define CPER_SECTION_H | |
| #include <json.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include "../edk/Cper.h" | |
| //Definition structure for a single CPER section type. | |
| typedef struct { | |
| EFI_GUID* Guid; | |
| const char* ReadableName; | |
| json_object* (*ToIR)(void*, EFI_ERROR_SECTION_DESCRIPTOR*); | |
| void (*ToCPER)(json_object*, FILE*); | |
| } CPER_SECTION_DEFINITION; | |
| extern CPER_SECTION_DEFINITION section_definitions[]; | |
| extern const size_t section_definitions_len; | |
| #endif |