include: move qdict_{crumple,flatten} declarations
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 20 Apr 2022 13:26:07 +0000 (17:26 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 21 Apr 2022 13:03:51 +0000 (17:03 +0400)
Move them where they belong, since the functions are implemented in block-qdict.c.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20220420132624.2439741-25-marcandre.lureau@redhat.com>

include/block/qdict.h
include/qapi/qmp/qdict.h
softmmu/vl.c
tests/unit/check-qobject.c

index ced2acfb92a080d9fc4ad52517fa353b1c996d50..b4c28d96a9e5ffe19e030c35e75cd61316152038 100644 (file)
@@ -12,6 +12,9 @@
 
 #include "qapi/qmp/qdict.h"
 
+QObject *qdict_crumple(const QDict *src, Error **errp);
+void qdict_flatten(QDict *qdict);
+
 void qdict_copy_default(QDict *dst, QDict *src, const char *key);
 void qdict_set_default_str(QDict *dst, const char *key, const char *val);
 
index 882d950bde89a9637f709688499c8bdbdb06a288..82e90fc07229baf447cbd88fc45075a847c7f443 100644 (file)
@@ -68,7 +68,4 @@ const char *qdict_get_try_str(const QDict *qdict, const char *key);
 
 QDict *qdict_clone_shallow(const QDict *src);
 
-QObject *qdict_crumple(const QDict *src, Error **errp);
-void qdict_flatten(QDict *qdict);
-
 #endif /* QDICT_H */
index 5312bd25649fcb1ec2643b2e200f76e939f4c67d..06a0e342fe9e46b10711ca4cbe089502b4c0bcf2 100644 (file)
 #include "qapi/qapi-visit-qom.h"
 #include "qapi/qapi-commands-ui.h"
 #include "qapi/qmp/qdict.h"
+#include "block/qdict.h"
 #include "qapi/qmp/qerror.h"
 #include "sysemu/iothread.h"
 #include "qemu/guest-random.h"
index 0ed094e55f3a89462a8928ebbf63b497244a855a..c5e850a10cb5dfddd0bf4072dbc0b24ed6f923a0 100644 (file)
@@ -15,6 +15,7 @@
 #include "qapi/qmp/qnull.h"
 #include "qapi/qmp/qnum.h"
 #include "qapi/qmp/qstring.h"
+#include "block/qdict.h"
 
 #include <math.h>