unicorn/qemu/include/qapi/qmp
Markus Armbruster 105a6be9b0
qobject: Add a special null QObject
I'm going to fix the JSON parser to recognize null. The obvious
representation of JSON null as (QObject *)NULL doesn't work, because
the parser already uses it as an error value. Perhaps we should
change it to free NULL for null, but that's more than I can do right
now. Create a special null QObject instead.

The existing QDict, QList, and QString all represent something that
is a pointer in C and could therefore be associated with NULL. But
right now, all three of these sub-types are always non-null once
created, so the new null sentinel object is intentionally unrelated
to them.

Backports commit 481b002cc81ed7fc7b06e32e9d4d495d81739d14 from qemu
2018-02-19 21:25:58 -05:00
..
qbool.h qobject: Use 'bool' for qbool 2018-02-17 15:23:09 -05:00
qdict.h qobject: Use 'bool' inside qdict 2018-02-17 15:23:09 -05:00
qerror.h qerror: Move #include out of qerror.h 2018-02-17 15:23:10 -05:00
qfloat.h platform.h move #3 2017-01-21 00:13:21 +11:00
qint.h platform.h move #3 2017-01-21 00:13:21 +11:00
qjson.h import 2015-08-21 15:04:50 +08:00
qlist.h import 2015-08-21 15:04:50 +08:00
qobject.h qobject: Add a special null QObject 2018-02-19 21:25:58 -05:00
qstring.h platform.h move #3 2017-01-21 00:13:21 +11:00
types.h import 2015-08-21 15:04:50 +08:00