Lawrence Tang | 580423f | 2022-08-24 09:37:53 +0100 | [diff] [blame] | 1 | #ifndef CPER_SECTION_H |
| 2 | #define CPER_SECTION_H |
| 3 | |
| 4 | #include <json.h> |
| 5 | #include <stdio.h> |
| 6 | #include <stdlib.h> |
| 7 | #include "../edk/Cper.h" |
| 8 | |
| 9 | //Definition structure for a single CPER section type. |
| 10 | typedef struct { |
John Chung | f8fc705 | 2024-05-03 20:05:29 +0800 | [diff] [blame] | 11 | EFI_GUID *Guid; |
| 12 | const char *ReadableName; |
| 13 | json_object *(*ToIR)(void *); |
| 14 | void (*ToCPER)(json_object *, FILE *); |
Lawrence Tang | 580423f | 2022-08-24 09:37:53 +0100 | [diff] [blame] | 15 | } CPER_SECTION_DEFINITION; |
| 16 | |
| 17 | extern CPER_SECTION_DEFINITION section_definitions[]; |
| 18 | extern const size_t section_definitions_len; |
| 19 | |
John Chung | f8fc705 | 2024-05-03 20:05:29 +0800 | [diff] [blame] | 20 | #endif |