blob: 4379f910a7d59ea2c3b1532b29aaaa4b7ee6e41f [file] [log] [blame]
#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