aboutsummaryrefslogtreecommitdiff
path: root/scripts/qapi-commands.py
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2012-08-06 11:35:22 -0300
committerLuiz Capitulino <lcapitulino@redhat.com>2012-08-13 16:10:18 -0300
commit08b76b9fc3f0c25f062216955411aefaefabff89 (patch)
tree7ef967ea48ea30df0c693d098de5fa26705fee4d /scripts/qapi-commands.py
parentadb2072ed0fd595b05f6571e985b271a3cfa872d (diff)
downloadqemu-08b76b9fc3f0c25f062216955411aefaefabff89.zip
qemu-08b76b9fc3f0c25f062216955411aefaefabff89.tar.gz
qemu-08b76b9fc3f0c25f062216955411aefaefabff89.tar.bz2
scripts: qapi-commands.py: qmp-commands.h: include qdict.h
qmp-commands.h declares several functions that have arguments of type QDict. However, qdict.h is not included. This will cause a build breakage when a file includes qmp-commands.h but doesn't include qdict.h. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'scripts/qapi-commands.py')
-rw-r--r--scripts/qapi-commands.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/qapi-commands.py b/scripts/qapi-commands.py
index 9eed40e..3c4678d 100644
--- a/scripts/qapi-commands.py
+++ b/scripts/qapi-commands.py
@@ -342,6 +342,7 @@ def gen_command_decl_prologue(header, guard, prefix=""):
#define %(guard)s
#include "%(prefix)sqapi-types.h"
+#include "qdict.h"
#include "error.h"
''',