Code

sysdb: Use a pager for displaying query results in interactive mode.
[sysdb.git] / src / tools / sysdb / json.h
index 08def61f726e361b94bf028b8098722740196066..ef7210dab543ba2a5dcbd1419fb51549c39d456b 100644 (file)
 
 #include "utils/strbuf.h"
 
+#include <stdio.h>
+
 #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 */