mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
Use OBJECT_DECLARE_SIMPLE_TYPE when possible
Generated using: $ ./scripts/codeconverter/converter.py -i \ --pattern=ObjectDeclareType $(git grep -l '' -- '*.[ch]') Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20200831210740.126168-19-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
c821774a3b
commit
1ff5adfa5b
11 changed files with 22 additions and 55 deletions
|
@ -26,8 +26,8 @@
|
|||
#include "crypto/secret_common.h"
|
||||
|
||||
#define TYPE_QCRYPTO_SECRET_KEYRING "secret_keyring"
|
||||
OBJECT_DECLARE_TYPE(QCryptoSecretKeyring, QCryptoSecretKeyringClass,
|
||||
qcrypto_secret_keyring, QCRYPTO_SECRET_KEYRING)
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(QCryptoSecretKeyring, qcrypto_secret_keyring,
|
||||
QCRYPTO_SECRET_KEYRING, QCryptoSecretCommonClass)
|
||||
|
||||
|
||||
struct QCryptoSecretKeyring {
|
||||
|
@ -36,8 +36,5 @@ struct QCryptoSecretKeyring {
|
|||
};
|
||||
|
||||
|
||||
struct QCryptoSecretKeyringClass {
|
||||
QCryptoSecretCommonClass parent;
|
||||
};
|
||||
|
||||
#endif /* QCRYPTO_SECRET_KEYRING_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue