unicorn/qemu/include/qapi/qmp
Markus Armbruster f89de73110
qdict qlist: Make most helper macros functions
The macro expansions of qdict_put_TYPE() and qlist_append_TYPE() need
qbool.h, qnull.h, qnum.h and qstring.h to compile. We include qnull.h
and qnum.h in the headers, but not qbool.h and qstring.h. Works,
because we include those wherever the macros get used.

Open-coding these helpers is of dubious value. Turn them into
functions and drop the includes from the headers.

This cleanup makes the number of objects depending on qapi/qmp/qnum.h
from 4551 (out of 4743) to 46 in my "build everything" tree. For
qapi/qmp/qnull.h, the number drops from 4552 to 21.

Backports commit 15280c360e54a65e2c7be1a47bfbe41dce1ef986 from qemu
2018-03-08 08:30:10 -05:00
..
qbool.h Typedef the subtypes of QObject in qemu/typedefs.h, too 2018-03-07 12:29:31 -05:00
qdict.h qdict qlist: Make most helper macros functions 2018-03-08 08:30:10 -05:00
qerror.h qmp: Eliminate silly QERR_QMP_* macros 2018-03-02 11:28:17 -05:00
qjson.h import 2015-08-21 15:04:50 +08:00
qlist.h qdict qlist: Make most helper macros functions 2018-03-08 08:30:10 -05:00
qlit.h qlit: add QLIT_QNULL and QLIT_BOOL 2018-03-07 17:18:56 -05:00
qnum.h qobject: Explain how QNum works, and why 2018-03-07 16:58:46 -05:00
qobject.h qapi: Introduce a first class 'null' type 2018-03-07 16:52:41 -05:00
qstring.h Typedef the subtypes of QObject in qemu/typedefs.h, too 2018-03-07 12:29:31 -05:00