]> git.proxmox.com Git - mirror_qemu.git/commit - qobject/json-parser.c
qapi: merge QInt and QFloat in QNum
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 7 Jun 2017 16:35:58 +0000 (20:35 +0400)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 20 Jun 2017 12:31:31 +0000 (14:31 +0200)
commit01b2ffcedd94ad7b42bc870e4c6936c87ad03429
tree39bbadfbbaa229bfbda245840a256fe0132b2390
parent58634047b7deeab36e4b07c4744e44d698975561
qapi: merge QInt and QFloat in QNum

We would like to use a same QObject type to represent numbers, whether
they are int, uint, or floats. Getters will allow some compatibility
between the various types if the number fits other representations.

Add a few more tests while at it.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20170607163635.17635-7-marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[parse_stats_intervals() simplified a bit, comment in
test_visitor_in_int_overflow() tidied up, suppress bogus warnings]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
65 files changed:
MAINTAINERS
block/blkdebug.c
block/nbd.c
block/nfs.c
block/qapi.c
block/quorum.c
block/sheepdog.c
block/ssh.c
block/vvfat.c
blockdev.c
hw/acpi/pcihp.c
hw/i386/acpi-build.c
hw/usb/xen-usb.c
include/qapi/qmp/qdict.h
include/qapi/qmp/qfloat.h [deleted file]
include/qapi/qmp/qint.h [deleted file]
include/qapi/qmp/qlist.h
include/qapi/qmp/qnum.h [new file with mode: 0644]
include/qapi/qmp/types.h
include/qapi/qobject-input-visitor.h
include/qapi/qobject-output-visitor.h
monitor.c
qapi/qobject-input-visitor.c
qapi/qobject-output-visitor.c
qga/commands.c
qga/main.c
qobject/Makefile.objs
qobject/json-parser.c
qobject/qdict.c
qobject/qfloat.c [deleted file]
qobject/qint.c [deleted file]
qobject/qjson.c
qobject/qnum.c [new file with mode: 0644]
qobject/qobject.c
qom/object.c
scripts/coccinelle/qobject.cocci
scripts/qapi-visit.py
scripts/qapi.py
target/i386/cpu.c
tests/.gitignore
tests/Makefile.include
tests/check-qdict.c
tests/check-qfloat.c [deleted file]
tests/check-qint.c [deleted file]
tests/check-qjson.c
tests/check-qlist.c
tests/check-qnum.c [new file with mode: 0644]
tests/qapi-schema/comments.out
tests/qapi-schema/doc-good.out
tests/qapi-schema/empty.out
tests/qapi-schema/event-case.out
tests/qapi-schema/ident-with-escape.out
tests/qapi-schema/include-relpath.out
tests/qapi-schema/include-repetition.out
tests/qapi-schema/include-simple.out
tests/qapi-schema/indented-expr.out
tests/qapi-schema/qapi-schema-test.out
tests/test-qmp-commands.c
tests/test-qmp-event.c
tests/test-qobject-input-visitor.c
tests/test-qobject-output-visitor.c
tests/test-x86-cpuid-compat.c
ui/spice-core.c
ui/vnc-enc-tight.c
util/qemu-option.c