Statistics
| Branch: | Revision:

root / qobject @ 4d5977ea

Name Size
Makefile.objs 151 Bytes
json-lexer.c 9.3 kB
json-parser.c 17.3 kB
json-streamer.c 3.2 kB
qbool.c 1.2 kB
qdict.c 13 kB
qerror.c 3.1 kB
qfloat.c 1.3 kB
qint.c 1.2 kB
qjson.c 6.9 kB
qlist.c 3.2 kB
qstring.c 3.2 kB

Latest revisions

# Date Author Comment
6273d113 11/29/2013 02:40 pm Kevin Wolf

qdict: Fix memory leak in qdict_do_flatten()

Reported-by: Laszlo Ersek <>
Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

4d5977ea 11/29/2013 02:40 pm Kevin Wolf

qdict: Optimise qdict_do_flatten()

Nested QDicts used to be both entered recursively in order to move their
entries to the target QDict and also be moved themselves to the target
QDict like all other objects. This is harmless because for the top
level, qdict_do_flatten() will encounter the (now empty) QDict for a...

5726d872 09/25/2013 05:21 pm Benoît Canet

qdict: Extract qdict_extract_subqdict

Signed-off-by: Benoit Canet <>
Signed-off-by: Kevin Wolf <>

f660dc6a 07/26/2013 11:01 pm Kevin Wolf

Implement qdict_flatten()

qdict_flatten(): For each nested QDict with key x, all fields with key y
are moved to this QDict and their key is renamed to "x.y". This operation
is applied recursively for nested QDicts.

Signed-off-by: Kevin Wolf <>...

69dd62df 07/26/2013 10:10 pm Kevin Wolf

qapi: Anonymous unions

The discriminator for anonymous unions is the data type. This allows to
have a union type that allows both of these:

{ 'file': 'my_existing_block_device_id' }
{ 'file': { 'filename': '/tmp/mydisk.qcow2', 'read-only': true } }...
3d5b3ec6 05/23/2013 04:44 pm Michael Roth

json-parser: fix handling of large whole number values

Currently our JSON parser assumes that numbers lacking a fractional
value are integers and attempts to store them as QInt/int64 values. This
breaks in the case where the number overflows/underflows int64 values (which...

e2ec3f97 04/13/2013 10:40 pm Markus Armbruster

qjson: to_json() case QTYPE_QSTRING is buggy, rewrite

Known bugs in to_json():

  • A start byte for a three-byte sequence followed by less than two
    continuation bytes is split into one-byte sequences.
  • Start bytes for sequences longer than three bytes get misinterpreted...
54d49ac9 04/05/2013 03:42 pm Luiz Capitulino

qstring: add qstring_get_length()

Long overdue.

Signed-off-by: Luiz Capitulino <>
Reviewed-by: Eric Blake <>
Acked-by: Gerd Hoffmann <>

b382bc9a 03/15/2013 05:07 pm Kevin Wolf

Add qdict_clone_shallow()

Signed-off-by: Kevin Wolf <>
Reviewed-by: Eric Blake <>
Reviewed-by: Stefan Hajnoczi <>
Signed-off-by: Stefan Hajnoczi <>

a372823a 01/12/2013 07:42 pm Paolo Bonzini

build: move qobject files to qobject/ and libqemuutil.a

Signed-off-by: Paolo Bonzini <>

View revisions

Also available in: Atom