| John Chung | f8fc705 | 2024-05-03 20:05:29 +0800 | [diff] [blame] | 1 | % module cperparse % |
| 2 | { |
| Thu Nguyen | e42fb48 | 2024-10-15 14:43:11 +0000 | [diff] [blame] | 3 | #include <libcper/cper-parse.h> |
| John Chung | f8fc705 | 2024-05-03 20:05:29 +0800 | [diff] [blame] | 4 | #include <json.h> |
| 5 | #include <stdio.h> |
| 6 | % |
| 7 | } |
| Lawrence Tang | 12042d7 | 2022-07-21 13:34:13 +0100 | [diff] [blame] | 8 | |
| John Chung | f8fc705 | 2024-05-03 20:05:29 +0800 | [diff] [blame] | 9 | //Library function declarations for module export. |
| Patrick Williams | a5cc9a9 | 2025-09-03 15:34:37 -0400 | [diff] [blame^] | 10 | json_object *cper_to_ir(FILE *cper_file); |
| John Chung | f8fc705 | 2024-05-03 20:05:29 +0800 | [diff] [blame] | 11 | void ir_to_cper(json_object *ir, FILE *out); |
| Lawrence Tang | 12042d7 | 2022-07-21 13:34:13 +0100 | [diff] [blame] | 12 | |
| 13 | //JSON function symbol export. |
| 14 | const char *json_object_to_json_string(struct json_object *obj); |
| 15 | struct json_object *json_object_from_file(const char *filename); |
| John Chung | f8fc705 | 2024-05-03 20:05:29 +0800 | [diff] [blame] | 16 | struct json_object *json_tokener_parse(const char *str); |