blob: 4ec86502bd98814a95151edc611f8d11649904d4 [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 {
John Chungf8fc7052024-05-03 20:05:29 +080011 EFI_GUID *Guid;
12 const char *ReadableName;
13 json_object *(*ToIR)(void *);
14 void (*ToCPER)(json_object *, FILE *);
Lawrence Tang580423f2022-08-24 09:37:53 +010015} CPER_SECTION_DEFINITION;
16
17extern CPER_SECTION_DEFINITION section_definitions[];
18extern const size_t section_definitions_len;
19
John Chungf8fc7052024-05-03 20:05:29 +080020#endif