projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refine packed annotations in stat.h
[fio.git]
/
json.h
diff --git
a/json.h
b/json.h
index 962c11c24e30673b1230ebbec91139b528e17bf2..bcc712cd4d414b91aeb923ae69c3b9bcd8a4c0b9 100644
(file)
--- a/
json.h
+++ b/
json.h
@@
-1,8
+1,7
@@
#ifndef __JSON__H
#define __JSON__H
#ifndef __JSON__H
#define __JSON__H
-struct json_object;
-struct json_array;
-struct json_pair;
+
+#include "lib/output_buffer.h"
#define JSON_TYPE_STRING 0
#define JSON_TYPE_INTEGER 1
#define JSON_TYPE_STRING 0
#define JSON_TYPE_INTEGER 1
@@
-76,5
+75,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)
#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
#endif