]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - hw/usb/host-libusb.c
Merge remote-tracking branch 'remotes/stsquad/tags/pull-testing-fixes-100920-1' into...
[thirdparty/qemu.git] / hw / usb / host-libusb.c
index c5d38cb09c064c6cc5207635a8c5cf7fff93e4f3..43c93504a26bafc9d5cd7011cc53dc5aca668011 100644 (file)
@@ -34,6 +34,7 @@
  */
 
 #include "qemu/osdep.h"
+#include "qom/object.h"
 #ifndef CONFIG_WIN32
 #include <poll.h>
 #endif
 /* ------------------------------------------------------------------------ */
 
 #define TYPE_USB_HOST_DEVICE "usb-host"
-#define USB_HOST_DEVICE(obj) \
-     OBJECT_CHECK(USBHostDevice, (obj), TYPE_USB_HOST_DEVICE)
-
 typedef struct USBHostDevice USBHostDevice;
+DECLARE_INSTANCE_CHECKER(USBHostDevice, USB_HOST_DEVICE,
+                         TYPE_USB_HOST_DEVICE)
+
 typedef struct USBHostRequest USBHostRequest;
 typedef struct USBHostIsoXfer USBHostIsoXfer;
 typedef struct USBHostIsoRing USBHostIsoRing;