qemu-e2k/include/qapi/qmp
Markus Armbruster 15280c360e 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.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20180201111846.21846-10-armbru@redhat.com>
2018-02-09 13:52:15 +01:00
..
dispatch.h qapi: Support multiple command registries per program 2017-03-05 09:12:25 +01:00
json-lexer.h include: Clean up includes 2016-02-23 12:43:05 +00:00
json-parser.h include: Clean up includes 2016-02-23 12:43:05 +00:00
json-streamer.h include: Clean up includes 2016-02-23 12:43:05 +00:00
qbool.h Typedef the subtypes of QObject in qemu/typedefs.h, too 2018-02-09 13:52:15 +01:00
qdict.h qdict qlist: Make most helper macros functions 2018-02-09 13:52:15 +01:00
qerror.h qmp: Eliminate silly QERR_QMP_* macros 2017-03-05 09:14:19 +01:00
qjson.h qobject: Propagate parse errors through qobject_from_json() 2017-03-07 16:07:47 +01:00
qlist.h qdict qlist: Make most helper macros functions 2018-02-09 13:52:15 +01:00
qlit.h Drop superfluous includes of qapi-types.h and test-qapi-types.h 2018-02-09 05:05:11 +01:00
qnull.h qapi: Add qobject_is_equal() 2017-11-17 18:21:30 +01:00
qnum.h Typedef the subtypes of QObject in qemu/typedefs.h, too 2018-02-09 13:52:15 +01:00
qobject.h qapi: Add qobject_is_equal() 2017-11-17 18:21:30 +01:00
qstring.h Typedef the subtypes of QObject in qemu/typedefs.h, too 2018-02-09 13:52:15 +01:00