blob: e783e7ddb2338abe6885de2a66ce94f570a870cb [file] [log] [blame]
John Chungf8fc7052024-05-03 20:05:29 +08001% module cperparse %
2 {
3#include "cper-parse.h"
4#include <json.h>
5#include <stdio.h>
6 %
7 }
Lawrence Tang12042d72022-07-21 13:34:13 +01008
John Chungf8fc7052024-05-03 20:05:29 +08009 //Library function declarations for module export.
10 json_object *
11 cper_to_ir(FILE *cper_file);
12void ir_to_cper(json_object *ir, FILE *out);
Lawrence Tang12042d72022-07-21 13:34:13 +010013
14//JSON function symbol export.
15const char *json_object_to_json_string(struct json_object *obj);
16struct json_object *json_object_from_file(const char *filename);
John Chungf8fc7052024-05-03 20:05:29 +080017struct json_object *json_tokener_parse(const char *str);