mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
qapi/crypto: Rename QCryptoAkCipherAlgorithm 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. QCryptoAkCipherAlgorithm has a 'prefix' that overrides the generated enumeration constants' prefix to QCRYPTO_AKCIPHER_ALG. We could simply drop 'prefix', but then the prefix becomes QCRYPTO_AK_CIPHER_ALGORITHM, which is rather long. We could additionally rename the type to QCryptoAkCipherAlg, but I think the abbreviation "alg" is less than clear. Rename the type to QCryptoAkCipherAlgo instead. The prefix becomes QCRYPTO_AK_CIPHER_ALGO. Signed-off-by: Markus Armbruster <armbru@redhat.com> Acked-by: Daniel P. Berrangé <berrange@redhat.com> Message-ID: <20240904111836.3273842-15-armbru@redhat.com>
This commit is contained in:
+3
-4
@@ -586,7 +586,7 @@
|
||||
'*sanity-check': 'bool',
|
||||
'*passwordid': 'str' } }
|
||||
##
|
||||
# @QCryptoAkCipherAlgorithm:
|
||||
# @QCryptoAkCipherAlgo:
|
||||
#
|
||||
# The supported algorithms for asymmetric encryption ciphers
|
||||
#
|
||||
@@ -594,8 +594,7 @@
|
||||
#
|
||||
# Since: 7.1
|
||||
##
|
||||
{ 'enum': 'QCryptoAkCipherAlgorithm',
|
||||
'prefix': 'QCRYPTO_AKCIPHER_ALG',
|
||||
{ 'enum': 'QCryptoAkCipherAlgo',
|
||||
'data': ['rsa']}
|
||||
|
||||
##
|
||||
@@ -649,6 +648,6 @@
|
||||
# Since: 7.1
|
||||
##
|
||||
{ 'union': 'QCryptoAkCipherOptions',
|
||||
'base': { 'alg': 'QCryptoAkCipherAlgorithm' },
|
||||
'base': { 'alg': 'QCryptoAkCipherAlgo' },
|
||||
'discriminator': 'alg',
|
||||
'data': { 'rsa': 'QCryptoAkCipherOptionsRSA' }}
|
||||
|
||||
Reference in New Issue
Block a user