]> git.proxmox.com Git - mirror_qemu.git/commit - Makefile.objs
QJSON: Add JSON writer
authorAlexander Graf <agraf@suse.de>
Thu, 22 Jan 2015 14:01:37 +0000 (15:01 +0100)
committerJuan Quintela <quintela@redhat.com>
Thu, 5 Feb 2015 16:16:14 +0000 (17:16 +0100)
commit190c882ce219ed89ac7d0633cfd11ad75fb0b46e
tree9cf4efddb581a5b7daf84bc48a64fc85b704e783
parent0457d07342b175e3d2f0835bef1a67cf75dbc9d6
QJSON: Add JSON writer

To support programmatic JSON assembly while keeping the code that generates it
readable, this patch introduces a simple JSON writer. It emits JSON serially
into a buffer in memory.

The nice thing about this writer is its simplicity and low memory overhead.
Unlike the QMP JSON writer, this one does not need to spawn QObjects for every
element it wants to represent.

This is a prerequisite for the migration stream format description generator.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Makefile.objs
include/qjson.h [new file with mode: 0644]
qjson.c [new file with mode: 0644]