qapi/crypto: Rename QCryptoCipherAlgorithm to *Algo, and drop prefix
authorMarkus Armbruster <armbru@redhat.com>
Wed, 4 Sep 2024 11:18:29 +0000 (13:18 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 10 Sep 2024 12:03:30 +0000 (14:03 +0200)
commita092c513dbb1e504ed1556e70ad263df54016e78
treeb81ae49abf0c6239826c29023c230c3b93487800
parentef834aa2b2b52ac44ca97d70d5ef5e975a229034
qapi/crypto: Rename QCryptoCipherAlgorithm 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.

QCryptoCipherAlgorithm has a 'prefix' that overrides the generated
enumeration constants' prefix to QCRYPTO_CIPHER_ALG.

We could simply drop 'prefix', but then the prefix becomes
QCRYPTO_CIPHER_ALGORITHM, which is rather long.

We could additionally rename the type to QCryptoCipherAlg, but I think
the abbreviation "alg" is less than clear.

Rename the type to QCryptoCipherAlgo instead.  The prefix becomes
QCRYPTO_CIPHER_ALGO.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Acked-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20240904111836.3273842-13-armbru@redhat.com>
26 files changed:
backends/cryptodev-builtin.c
block/rbd.c
crypto/block-luks.c
crypto/block-qcow.c
crypto/block.c
crypto/blockpriv.h
crypto/cipher-afalg.c
crypto/cipher-builtin.c.inc
crypto/cipher-gcrypt.c.inc
crypto/cipher-gnutls.c.inc
crypto/cipher-nettle.c.inc
crypto/cipher.c
crypto/cipherpriv.h
crypto/ivgen.c
crypto/ivgenpriv.h
crypto/secret_common.c
include/crypto/cipher.h
include/crypto/ivgen.h
include/crypto/pbkdf.h
qapi/block-core.json
qapi/crypto.json
tests/bench/benchmark-crypto-cipher.c
tests/unit/test-crypto-block.c
tests/unit/test-crypto-cipher.c
tests/unit/test-crypto-ivgen.c
ui/vnc.c