]> git.proxmox.com Git - mirror_qemu.git/commit - block/gluster.c
block: Add block-specific QDict header
authorMax Reitz <mreitz@redhat.com>
Thu, 14 Jun 2018 19:14:28 +0000 (21:14 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 15 Jun 2018 12:49:44 +0000 (14:49 +0200)
commit609f45ea9507fc1603eaeda7f5066b99beac6721
tree9fb9d179f3a9259f0696ffbc668c7ad20a774155
parentdeadbb8ebb5c253da9b8ed02ab51a0fadf60edc7
block: Add block-specific QDict header

There are numerous QDict functions that have been introduced for and are
used only by the block layer.  Move their declarations into an own
header file to reflect that.

While qdict_extract_subqdict() is in fact used outside of the block
layer (in util/qemu-config.c), it is still a function related very
closely to how the block layer works with nested QDicts, namely by
sometimes flattening them.  Therefore, its declaration is put into this
header as well and util/qemu-config.c includes it with a comment stating
exactly which function it needs.

Suggested-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20180509165530.29561-7-mreitz@redhat.com>
[Copyright note tweaked, superfluous includes dropped]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
26 files changed:
block.c
block/gluster.c
block/iscsi.c
block/nbd.c
block/nfs.c
block/parallels.c
block/qcow.c
block/qcow2.c
block/qed.c
block/quorum.c
block/rbd.c
block/sheepdog.c
block/snapshot.c
block/ssh.c
block/vhdx.c
block/vpc.c
block/vvfat.c
block/vxhs.c
blockdev.c
include/block/qdict.h [new file with mode: 0644]
include/qapi/qmp/qdict.h
qobject/qdict.c
tests/check-qdict.c
tests/check-qobject.c
tests/test-replication.c
util/qemu-config.c