1580423feSLawrence Tang #ifndef CPER_SECTION_H 2580423feSLawrence Tang #define CPER_SECTION_H 3580423feSLawrence Tang 4580423feSLawrence Tang #include <json.h> 5580423feSLawrence Tang #include <stdio.h> 6580423feSLawrence Tang #include <stdlib.h> 7580423feSLawrence Tang #include "../edk/Cper.h" 8580423feSLawrence Tang 9580423feSLawrence Tang //Definition structure for a single CPER section type. 10580423feSLawrence Tang typedef struct { 11580423feSLawrence Tang EFI_GUID *Guid; 12580423feSLawrence Tang const char *ReadableName; 13*f8fc7052SJohn Chung json_object *(*ToIR)(void *); 14580423feSLawrence Tang void (*ToCPER)(json_object *, FILE *); 15580423feSLawrence Tang } CPER_SECTION_DEFINITION; 16580423feSLawrence Tang 17580423feSLawrence Tang extern CPER_SECTION_DEFINITION section_definitions[]; 18580423feSLawrence Tang extern const size_t section_definitions_len; 19580423feSLawrence Tang 20580423feSLawrence Tang #endif 21