summaryrefslogtreecommitdiffstats
path: root/include/crypto/secret_keyring.h
diff options
context:
space:
mode:
authorEduardo Habkost2020-08-31 23:07:40 +0200
committerEduardo Habkost2020-09-09 15:27:11 +0200
commit1ff5adfa5bad905e36bb7eff5e436e26793f111f (patch)
treef41ea648acc321c7839b32ed2797946bce0a7ee3 /include/crypto/secret_keyring.h
parentUse OBJECT_DECLARE_TYPE where possible (diff)
downloadqemu-1ff5adfa5bad905e36bb7eff5e436e26793f111f.tar.gz
qemu-1ff5adfa5bad905e36bb7eff5e436e26793f111f.tar.xz
qemu-1ff5adfa5bad905e36bb7eff5e436e26793f111f.zip
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>
Diffstat (limited to 'include/crypto/secret_keyring.h')
-rw-r--r--include/crypto/secret_keyring.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/crypto/secret_keyring.h b/include/crypto/secret_keyring.h
index cc2c7397db..73d2a8f501 100644
--- a/include/crypto/secret_keyring.h
+++ b/include/crypto/secret_keyring.h
@@ -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 */