blob: 7ba1da42d84dcccac5112eccea8d6a84eddea4e7 [file] [log] [blame]
Lawrence Tang12042d72022-07-21 13:34:13 +01001%module cperparse
2%{
3 #include "cper-parse.h"
Lawrence Tang5202bbb2022-08-12 14:54:36 +01004 #include <json.h>
Lawrence Tang12042d72022-07-21 13:34:13 +01005 #include <stdio.h>
6%}
7
8//Library function declarations for module export.
9json_object* cper_to_ir(FILE* cper_file);
10void ir_to_cper(json_object* ir, FILE* out);
11
12//JSON function symbol export.
13const char *json_object_to_json_string(struct json_object *obj);
14struct json_object *json_object_from_file(const char *filename);
15struct json_object *json_tokener_parse(const char *str);