blob: 71cf4b192f5ae1ecd418dd1f2263f6d4cb522805 [file] [log] [blame]
Lawrence Tang580423f2022-08-24 09:37:53 +01001#ifndef CPER_SECTION_H
2#define CPER_SECTION_H
3
Karthik Rajagopalan255bd812024-09-06 14:36:34 -07004#ifdef __cplusplus
5extern "C" {
6#endif
7
Lawrence Tang580423f2022-08-24 09:37:53 +01008#include <json.h>
9#include <stdio.h>
10#include <stdlib.h>
11#include "../edk/Cper.h"
12
13//Definition structure for a single CPER section type.
14typedef struct {
John Chungf8fc7052024-05-03 20:05:29 +080015 EFI_GUID *Guid;
16 const char *ReadableName;
17 json_object *(*ToIR)(void *);
18 void (*ToCPER)(json_object *, FILE *);
Lawrence Tang580423f2022-08-24 09:37:53 +010019} CPER_SECTION_DEFINITION;
20
21extern CPER_SECTION_DEFINITION section_definitions[];
22extern const size_t section_definitions_len;
23
Karthik Rajagopalan255bd812024-09-06 14:36:34 -070024#ifdef __cplusplus
25}
26#endif
27
John Chungf8fc7052024-05-03 20:05:29 +080028#endif