aboutsummaryrefslogtreecommitdiff
path: root/block/crypto.h
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2018-06-26 19:41:19 +0200
committerKevin Wolf <kwolf@redhat.com>2018-06-29 14:20:56 +0200
commit796d32394516d624986e9275f56bfcbffe945491 (patch)
treefb1c30c32d9da335a8a72a761e9ab130aeb1bebf /block/crypto.h
parent37aec7d75eb0d035a0db4f2cf9ad8b1b0c10f91b (diff)
downloadqemu-796d32394516d624986e9275f56bfcbffe945491.zip
qemu-796d32394516d624986e9275f56bfcbffe945491.tar.gz
qemu-796d32394516d624986e9275f56bfcbffe945491.tar.bz2
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>
Diffstat (limited to 'block/crypto.h')
-rw-r--r--block/crypto.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/block/crypto.h b/block/crypto.h
index 0f985ea..dd7d479 100644
--- a/block/crypto.h
+++ b/block/crypto.h
@@ -89,13 +89,9 @@
}
QCryptoBlockCreateOptions *
-block_crypto_create_opts_init(QCryptoBlockFormat format,
- QDict *opts,
- Error **errp);
+block_crypto_create_opts_init(QDict *opts, Error **errp);
QCryptoBlockOpenOptions *
-block_crypto_open_opts_init(QCryptoBlockFormat format,
- QDict *opts,
- Error **errp);
+block_crypto_open_opts_init(QDict *opts, Error **errp);
#endif /* BLOCK_CRYPTO_H__ */