]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/hw/ide/pci.h
Use DECLARE_*CHECKER* macros
[mirror_qemu.git] / include / hw / ide / pci.h
index 7ed1fa101d1d0112088e2f0d7e188ab6b8d98f8d..b8d7270ec8020ae5cdb4ceff98ba5f673605944b 100644 (file)
@@ -41,7 +41,8 @@ typedef struct BMDMAState {
 
 #define TYPE_PCI_IDE "pci-ide"
 typedef struct PCIIDEState PCIIDEState;
-#define PCI_IDE(obj) OBJECT_CHECK(PCIIDEState, (obj), TYPE_PCI_IDE)
+DECLARE_INSTANCE_CHECKER(PCIIDEState, PCI_IDE,
+                         TYPE_PCI_IDE)
 
 struct PCIIDEState {
     /*< private >*/