]> git.proxmox.com Git - mirror_qemu.git/blobdiff - backends/tpm/tpm_emulator.c
Use DECLARE_*CHECKER* macros
[mirror_qemu.git] / backends / tpm / tpm_emulator.c
index 2509c8d32747022fdc6c6f850bec423dd870cdaf..13657d9aba6c689696d2d541e0e53e56983088e5 100644 (file)
@@ -46,8 +46,8 @@
 
 #define TYPE_TPM_EMULATOR "tpm-emulator"
 typedef struct TPMEmulator TPMEmulator;
-#define TPM_EMULATOR(obj) \
-    OBJECT_CHECK(TPMEmulator, (obj), TYPE_TPM_EMULATOR)
+DECLARE_INSTANCE_CHECKER(TPMEmulator, TPM_EMULATOR,
+                         TYPE_TPM_EMULATOR)
 
 #define TPM_EMULATOR_IMPLEMENTS_ALL_CAPS(S, cap) (((S)->caps & (cap)) == (cap))