Include qapi/qmp/qdict.h exactly where needed

This cleanup makes the number of objects depending on qapi/qmp/qdict.h
drop from 4550 (out of 4743) to 368 in my "build everything" tree.
For qapi/qmp/qobject.h, the number drops from 4552 to 390.

While there, separate #include from file comment with a blank line.

Backports commit 452fcdbc49c59884c8c284268d64baa24fea11e1 from qemu
This commit is contained in:
Markus Armbruster 2018-03-08 08:51:44 -05:00 committed by Lioncash
parent 1496dddeab
commit 6a71ff06ca
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7
2 changed files with 2 additions and 1 deletions

View file

@ -207,6 +207,7 @@ fdef.write(mcgen('''
#include "%(prefix)sqapi-event.h"
#include "%(prefix)sqapi-visit.h"
#include "qapi/error.h"
#include "qapi/qmp/qdict.h"
#include "qapi/qobject-output-visitor.h"
#include "qapi/qmp-event.h"
@ -214,7 +215,6 @@ fdef.write(mcgen('''
prefix=prefix))
fdecl.write(mcgen('''
#include "qapi/qmp/qdict.h"
#include "%(prefix)sqapi-types.h"
''',

View file

@ -26,6 +26,7 @@
#include "sysemu/cpus.h"
#include "qapi/error.h"
#include "qapi/qmp/qdict.h"
#include "qapi/qmp/qerror.h"
#include "qapi-visit.h"