diff options
author | Markus Armbruster <armbru@redhat.com> | 2024-09-04 13:18:35 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2024-09-10 14:03:30 +0200 |
commit | b1019999e86ca816eb1754ff8b907a61ae294969 (patch) | |
tree | baf6170514024d471db7d790f6e68cc82c964b80 /qapi/cryptodev.json | |
parent | d0917d79fd0d239348a8a02f18dea6c4b77caabd (diff) | |
download | qemu-b1019999e86ca816eb1754ff8b907a61ae294969.zip qemu-b1019999e86ca816eb1754ff8b907a61ae294969.tar.gz qemu-b1019999e86ca816eb1754ff8b907a61ae294969.tar.bz2 |
qapi/cryptodev: Rename QCryptodevBackendAlgType to *Algo, and drop prefix
QAPI's 'prefix' feature can make the connection between enumeration
type and its constants less than obvious. It's best used with
restraint.
QCryptodevBackendAlgType has a 'prefix' that overrides the generated
enumeration constants' prefix to QCRYPTODEV_BACKEND_ALG.
We could simply drop 'prefix', but I think the abbreviation "alg" is
less than clear.
Additionally rename the type to QCryptodevBackendAlgoType. The prefix
becomes QCRYPTODEV_BACKEND_ALGO_TYPE.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20240904111836.3273842-19-armbru@redhat.com>
Diffstat (limited to 'qapi/cryptodev.json')
-rw-r--r-- | qapi/cryptodev.json | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/qapi/cryptodev.json b/qapi/cryptodev.json index 65abc16..5e41734 100644 --- a/qapi/cryptodev.json +++ b/qapi/cryptodev.json @@ -9,7 +9,7 @@ ## ## -# @QCryptodevBackendAlgType: +# @QCryptodevBackendAlgoType: # # The supported algorithm types of a crypto device. # @@ -19,8 +19,7 @@ # # Since: 8.0 ## -{ 'enum': 'QCryptodevBackendAlgType', - 'prefix': 'QCRYPTODEV_BACKEND_ALG', +{ 'enum': 'QCryptodevBackendAlgoType', 'data': ['sym', 'asym']} ## |