]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2.c
block/crypto: Simplify block_crypto_{open,create}_opts_init()
authorMarkus Armbruster <armbru@redhat.com>
Tue, 26 Jun 2018 17:41:19 +0000 (19:41 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 29 Jun 2018 12:20:56 +0000 (14:20 +0200)
commit796d32394516d624986e9275f56bfcbffe945491
treefb1c30c32d9da335a8a72a761e9ab130aeb1bebf
parent37aec7d75eb0d035a0db4f2cf9ad8b1b0c10f91b
block/crypto: Simplify block_crypto_{open,create}_opts_init()

block_crypto_open_opts_init() and block_crypto_create_opts_init()
contain a virtual visit of QCryptoBlockOptions and
QCryptoBlockCreateOptions less member "format", respectively.

Change their callers to put member "format" in the QDict, so they can
use the generated visitors for these types instead.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/crypto.c
block/crypto.h
block/qcow.c
block/qcow2.c