1 % module cperparse % 2 { 3 #include "cper-parse.h" 4 #include <json.h> 5 #include <stdio.h> 6 % 7 } 8 9 //Library function declarations for module export. 10 json_object * 11 cper_to_ir(FILE *cper_file); 12 void ir_to_cper(json_object *ir, FILE *out); 13 14 //JSON function symbol export. 15 const char *json_object_to_json_string(struct json_object *obj); 16 struct json_object *json_object_from_file(const char *filename); 17 struct json_object *json_tokener_parse(const char *str); 18