1 #ifndef CPER_SECTION_H 2 #define CPER_SECTION_H 3 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 7 8 #include <json.h> 9 #include <stdio.h> 10 #include <stdlib.h> 11 #include "../edk/Cper.h" 12 13 //Definition structure for a single CPER section type. 14 typedef struct { 15 EFI_GUID *Guid; 16 const char *ReadableName; 17 json_object *(*ToIR)(void *); 18 void (*ToCPER)(json_object *, FILE *); 19 } CPER_SECTION_DEFINITION; 20 21 extern CPER_SECTION_DEFINITION section_definitions[]; 22 extern const size_t section_definitions_len; 23 24 #ifdef __cplusplus 25 } 26 #endif 27 28 #endif 29