X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Ftools%2Fsysdb%2Fjson.h;h=ef7210dab543ba2a5dcbd1419fb51549c39d456b;hp=9fc1a70d3fb49fc42272e66ef4d2b7379ed0dd3b;hb=5cc17919bcf0cc5474811e376bdba8989f0b54d3;hpb=233d70fd5ffdc770e639da722a8070cb73ec4fc6 diff --git a/src/tools/sysdb/json.h b/src/tools/sysdb/json.h index 9fc1a70..ef7210d 100644 --- a/src/tools/sysdb/json.h +++ b/src/tools/sysdb/json.h @@ -25,18 +25,22 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "tools/sysdb/input.h" + #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_strbuf_t *buf); +sdb_json_print(FILE *out, sdb_input_t *input, int type, sdb_strbuf_t *buf); #endif /* SYSDB_JSON_H */