X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=json.h;h=2a798ceb4b06d4fc41203096fbb3eb9f4f9749b2;hp=4d05e82302522b67c387b0c30470bcb5eda4eea3;hb=c60587f663d2b800bdae254e86da84b4cfd070e8;hpb=cc372b17f2827e89da79241f1bbaca1e7c650611 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