blob: 4379f910a7d59ea2c3b1532b29aaaa4b7ee6e41f [file] [log] [blame]
Lawrence Tang580423f2022-08-24 09:37:53 +01001#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.
10typedef struct {
11 EFI_GUID* Guid;
12 const char* ReadableName;
13 json_object* (*ToIR)(void*, EFI_ERROR_SECTION_DESCRIPTOR*);
14 void (*ToCPER)(json_object*, FILE*);
15} CPER_SECTION_DEFINITION;
16
17extern CPER_SECTION_DEFINITION section_definitions[];
18extern const size_t section_definitions_len;
19
20#endif