diff options
Diffstat (limited to 'ui/spice-app.c')
-rw-r--r-- | ui/spice-app.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ui/spice-app.c b/ui/spice-app.c index 40fb2ef573..93e105c6ee 100644 --- a/ui/spice-app.c +++ b/ui/spice-app.c @@ -35,17 +35,20 @@ #include "io/channel-command.h" #include "chardev/spice.h" #include "sysemu/sysemu.h" +#include "qom/object.h" static const char *tmp_dir; static char *app_dir; static char *sock_path; -typedef struct VCChardev { +struct VCChardev { SpiceChardev parent; -} VCChardev; +}; +typedef struct VCChardev VCChardev; #define TYPE_CHARDEV_VC "chardev-vc" -#define VC_CHARDEV(obj) OBJECT_CHECK(VCChardev, (obj), TYPE_CHARDEV_VC) +DECLARE_INSTANCE_CHECKER(VCChardev, VC_CHARDEV, + TYPE_CHARDEV_VC) static ChardevBackend * chr_spice_backend_new(void) |