Code

sysdb: Use a pager for displaying query results in interactive mode.
[sysdb.git] / src / tools / sysdb / json.h
index b276eff82b62b64732a42258b7d98bfaa66eda66..ef7210dab543ba2a5dcbd1419fb51549c39d456b 100644 (file)
@@ -29,6 +29,8 @@
 
 #include "utils/strbuf.h"
 
+#include <stdio.h>
+
 #ifndef SYSDB_JSON_H
 #define SYSDB_JSON_H 1
 
@@ -38,7 +40,7 @@
  * specified buffer. The output is printed to the standard output channel.
  */
 int
-sdb_json_print(sdb_input_t *input, int type, sdb_strbuf_t *buf);
+sdb_json_print(FILE *out, sdb_input_t *input, int type, sdb_strbuf_t *buf);
 
 #endif /* SYSDB_JSON_H */