summaryrefslogtreecommitdiff
path: root/json.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2015-10-27 13:45:21 +0900
committerJens Axboe <axboe@fb.com>2015-10-27 13:45:21 +0900
commita666cab8ed3d2a2fa782be345425a2e88734a007 (patch)
treeea0b489fa42dd96dec59ae372f9ed27ef487a265 /json.h
parent129fb2d422557e493020a8eac00867749af284b4 (diff)
downloadfio-a666cab8ed3d2a2fa782be345425a2e88734a007.tar.gz
fio-a666cab8ed3d2a2fa782be345425a2e88734a007.tar.bz2
Enable the use of multiple output formats
You can now do ./fio --output-format=normal,json jobfile.fio and get both types of output. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'json.h')
-rw-r--r--json.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/json.h b/json.h
index 962c11c2..d7017e06 100644
--- a/json.h
+++ b/json.h
@@ -1,5 +1,8 @@
#ifndef __JSON__H
#define __JSON__H
+
+#include "lib/output_buffer.h"
+
struct json_object;
struct json_array;
struct json_pair;
@@ -76,5 +79,5 @@ int json_array_add_value_type(struct json_array *array, int type, ...);
#define json_array_last_value_object(obj) \
(obj->values[obj->value_cnt - 1]->object)
-void json_print_object(struct json_object *obj);
+void json_print_object(struct json_object *obj, struct buf_output *out);
#endif