diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2020-09-14 15:42:23 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-09-15 14:11:49 +0200 |
commit | 3b593b3fe406c04d34a7e896c364a17b034fcf4f (patch) | |
tree | 20d680f9a8c2283c2a196e9dfc956761f0d7043a /include | |
parent | 64f7aece8ea0745c0990f7ba20189341e70f123c (diff) | |
download | qemu-3b593b3fe406c04d34a7e896c364a17b034fcf4f.zip qemu-3b593b3fe406c04d34a7e896c364a17b034fcf4f.tar.gz qemu-3b593b3fe406c04d34a7e896c364a17b034fcf4f.tar.bz2 |
virtio-gpu: make virtio_gpu_ops static
Reference it via ops pointer instead, simliar to the vga one.
Removes hard symbol reference, needed to build virtio-gpu modular.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20200914134224.29769-6-kraxel@redhat.com
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/virtio/virtio-gpu.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/hw/virtio/virtio-gpu.h b/include/hw/virtio/virtio-gpu.h index f334b78..6b45b47 100644 --- a/include/hw/virtio/virtio-gpu.h +++ b/include/hw/virtio/virtio-gpu.h @@ -106,6 +106,7 @@ struct VirtIOGPUBase { struct virtio_gpu_base_conf conf; struct virtio_gpu_config virtio_config; + const GraphicHwOps *hw_ops; bool use_virgl_renderer; int renderer_blocked; @@ -171,8 +172,6 @@ struct VhostUserGPU { bool backend_blocked; }; -extern const GraphicHwOps virtio_gpu_ops; - #define VIRTIO_GPU_FILL_CMD(out) do { \ size_t s; \ s = iov_to_buf(cmd->elem.out_sg, cmd->elem.out_num, 0, \ |