blob: b2f44098f9c1b6374190a990981161873041560c [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.
Patrick Williamsa5cc9a92025-09-03 15:34:37 -040010 json_object *cper_to_ir(FILE *cper_file);
John Chungf8fc7052024-05-03 20:05:29 +080011void ir_to_cper(json_object *ir, FILE *out);
Lawrence Tang12042d72022-07-21 13:34:13 +010012
13//JSON function symbol export.
14const char *json_object_to_json_string(struct json_object *obj);
15struct json_object *json_object_from_file(const char *filename);
John Chungf8fc7052024-05-03 20:05:29 +080016struct json_object *json_tokener_parse(const char *str);