Home
last modified time | relevance | path

Searched refs:_jw (Results 1 – 1 of 1) sorted by relevance

/external/iproute2/lib/
Djson_print.c18 static json_writer_t *_jw; variable
20 #define _IS_JSON_CONTEXT(type) ((type & PRINT_JSON || type & PRINT_ANY) && _jw)
21 #define _IS_FP_CONTEXT(type) (!_jw && (type & PRINT_FP || type & PRINT_ANY))
26 _jw = jsonw_new(stdout); in new_json_obj()
27 if (!_jw) { in new_json_obj()
31 jsonw_pretty(_jw, true); in new_json_obj()
32 jsonw_start_array(_jw); in new_json_obj()
38 if (_jw) { in delete_json_obj()
39 jsonw_end_array(_jw); in delete_json_obj()
40 jsonw_destroy(&_jw); in delete_json_obj()
[all …]