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 { 11 EFI_GUID *Guid; 12 const char *ReadableName; 13 json_object *(*ToIR)(void *); 14 void (*ToCPER)(json_object *, FILE *); 15 } CPER_SECTION_DEFINITION; 16 17 extern CPER_SECTION_DEFINITION section_definitions[]; 18 extern const size_t section_definitions_len; 19 20 #endif 21