diff options
author | Eduardo Habkost | 2020-08-25 21:20:25 +0200 |
---|---|---|
committer | Eduardo Habkost | 2020-08-27 20:04:54 +0200 |
commit | 2504f868f3e69ce923bf9997ca1051ab053859fa (patch) | |
tree | cbcb91782c2593265c032805435ba2db4e65aa78 /hw/display/vhost-user-gpu.c | |
parent | s390x: Move typedef SCLPEventFacility to event-facility.h (diff) | |
download | qemu-2504f868f3e69ce923bf9997ca1051ab053859fa.tar.gz qemu-2504f868f3e69ce923bf9997ca1051ab053859fa.tar.xz qemu-2504f868f3e69ce923bf9997ca1051ab053859fa.zip |
vhost-user-gpu: Move QOM macro to header
Move the VHOST_USER_GPU type checking macro to virtio-gpu.h,
close to the TYPE_VHOST_USER_GPU #define.
This will make future conversion to OBJECT_DECLARE* easier.
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Tested-By: Roman Bolshakov <r.bolshakov@yadro.com>
Message-Id: <20200825192110.3528606-30-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/display/vhost-user-gpu.c')
-rw-r--r-- | hw/display/vhost-user-gpu.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/hw/display/vhost-user-gpu.c b/hw/display/vhost-user-gpu.c index 4cdaee1bde..51f1747c4a 100644 --- a/hw/display/vhost-user-gpu.c +++ b/hw/display/vhost-user-gpu.c @@ -17,9 +17,6 @@ #include "qapi/error.h" #include "migration/blocker.h" -#define VHOST_USER_GPU(obj) \ - OBJECT_CHECK(VhostUserGPU, (obj), TYPE_VHOST_USER_GPU) - typedef enum VhostUserGpuRequest { VHOST_USER_GPU_NONE = 0, VHOST_USER_GPU_GET_PROTOCOL_FEATURES, |