blob: 45c8d3acaabd609ee46267f0a50a13473cd79484 [file] [log] [blame]
John Chungf8fc7052024-05-03 20:05:29 +08001% module cperparse %
2 {
Thu Nguyene42fb482024-10-15 14:43:11 +00003#include <libcper/cper-parse.h>
John Chungf8fc7052024-05-03 20:05:29 +08004#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);