Code

sysdb: Don't pretty-print JSON in non-interactive mode.
[sysdb.git] / src / tools / sysdb / json.h
index 9fc1a70d3fb49fc42272e66ef4d2b7379ed0dd3b..08def61f726e361b94bf028b8098722740196066 100644 (file)
@@ -25,6 +25,8 @@
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include "tools/sysdb/input.h"
+
 #include "utils/strbuf.h"
 
 #ifndef SYSDB_JSON_H
@@ -36,7 +38,7 @@
  * printed to the standard output channel.
  */
 int
-sdb_json_print(sdb_strbuf_t *buf);
+sdb_json_print(sdb_input_t *input, sdb_strbuf_t *buf);
 
 #endif /* SYSDB_JSON_H */