X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftools%2Fsysdb%2Fjson.h;h=ef7210dab543ba2a5dcbd1419fb51549c39d456b;hb=5cc17919bcf0cc5474811e376bdba8989f0b54d3;hp=08def61f726e361b94bf028b8098722740196066;hpb=eeecbb1672352c4dc15af2ca345f2bb5cc5a5f66;p=sysdb.git diff --git a/src/tools/sysdb/json.h b/src/tools/sysdb/json.h index 08def61..ef7210d 100644 --- a/src/tools/sysdb/json.h +++ b/src/tools/sysdb/json.h @@ -29,16 +29,18 @@ #include "utils/strbuf.h" +#include + #ifndef SYSDB_JSON_H #define SYSDB_JSON_H 1 /* * sdb_json_print: - * Format the JSON string stored in the specified buffer. The output is - * printed to the standard output channel. + * Format the JSON object of the specified type. The raw JSON is read from the + * specified buffer. The output is printed to the standard output channel. */ int -sdb_json_print(sdb_input_t *input, sdb_strbuf_t *buf); +sdb_json_print(FILE *out, sdb_input_t *input, int type, sdb_strbuf_t *buf); #endif /* SYSDB_JSON_H */