Statistics
| Branch: | Revision:

root / qobject @ 1246b259

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 12.8 kB
qerror.c 3 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
47908a0f 12/02/2013 07:02 pm Stefan Weil

qobject: Fix compiler warning (missing gnu_printf format attribute)

gcc 4.8.2 reports this warning when extra warnings are enabled (-Wextra):

CC    qobject/qerror.o
qobject/qerror.c: In function ‘qerror_from_info’:
qobject/qerror.c:53:5: error:
function might be possible candidate for ‘gnu_printf’ format attribute [-Werror=suggest-attribute=format]...
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