mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
qjson: replace QString in JSONLexer with GString
JSONLexer only needs a simple resizable buffer. json-streamer.c can allocate memory for each token instead of relying on reference counting of QStrings. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <1448300659-23559-2-git-send-email-pbonzini@redhat.com> [Straightforwardly rebased on my patches, checkpatch made happy] Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
6b9606f68e
commit
d2ca7c0b0d
4 changed files with 18 additions and 22 deletions
|
@ -14,6 +14,7 @@
|
|||
#ifndef QEMU_JSON_STREAMER_H
|
||||
#define QEMU_JSON_STREAMER_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include "qapi/qmp/qlist.h"
|
||||
#include "qapi/qmp/json-lexer.h"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue