diff options
author | Karel Zak <kzak@redhat.com> | 2021-11-08 15:43:30 +0100 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2021-11-08 15:43:30 +0100 |
commit | 195993d504de1697923451289bf86feed009b29e (patch) | |
tree | 489231ba8f7ea755c435c3a5c0ca7b446dcd95fe /include | |
parent | c5073a6966446309970bff3d60683d924a6431a3 (diff) | |
download | util-linux-195993d504de1697923451289bf86feed009b29e.tar.gz |
lib/jsonwrt: check if JSON handler is initialized
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/jsonwrt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/jsonwrt.h b/include/jsonwrt.h index 4587b60a9..396765c24 100644 --- a/include/jsonwrt.h +++ b/include/jsonwrt.h @@ -15,6 +15,7 @@ struct ul_jsonwrt { }; void ul_jsonwrt_init(struct ul_jsonwrt *fmt, FILE *out, int indent); +int ul_jsonwrt_is_ready(struct ul_jsonwrt *fmt); void ul_jsonwrt_indent(struct ul_jsonwrt *fmt); void ul_jsonwrt_open(struct ul_jsonwrt *fmt, const char *name, int type); void ul_jsonwrt_close(struct ul_jsonwrt *fmt, int type); |