X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=json.h;h=2a798ceb4b06d4fc41203096fbb3eb9f4f9749b2;hb=4e59d0f3a3ff569bddb31fe6927a9faf204ae9bf;hp=4d05e82302522b67c387b0c30470bcb5eda4eea3;hpb=d79db1222039e906dd49ae290daa59701f4e2385;p=fio.git diff --git a/json.h b/json.h index 4d05e823..2a798ceb 100644 --- a/json.h +++ b/json.h @@ -73,5 +73,8 @@ int json_array_add_value_type(struct json_array *array, int type, ...); #define json_array_add_value_array(obj, val) \ json_array_add_value_type((obj), JSON_TYPE_ARRAY, (val)) +#define json_array_last_value_object(obj) \ + (obj->values[obj->value_cnt - 1]->object) + void json_print_object(struct json_object *obj); #endif