[gconfig] gconfig: VIRTIO -> VIRTIO_GPU

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rename GVIR_CONFIG_DOMAIN_VIDEO_MODEL_VIRTIO to
GVIR_CONFIG_DOMAIN_VIDEO_MODEL_VIRTIO_GPU to get the naming the same as
used by libosinfo. Consistency is good anyway in general but this would
also mean that Boxes can start using virgl without any changes.
---
 examples/config-demo.py                        | 2 +-
 libvirt-gconfig/libvirt-gconfig-domain-video.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/config-demo.py b/examples/config-demo.py
index e92aa43..e52996c 100644
--- a/examples/config-demo.py
+++ b/examples/config-demo.py
@@ -62,7 +62,7 @@ graphics.set_gl(True)
 domain.add_device(graphics)
 
 video = LibvirtGConfig.DomainVideo.new()
-video.set_model(LibvirtGConfig.DomainVideoModel.VIRTIO)
+video.set_model(LibvirtGConfig.DomainVideoModel.VIRTIO_GPU)
 video.set_accel3d(True)
 domain.add_device(video)
 
diff --git a/libvirt-gconfig/libvirt-gconfig-domain-video.h b/libvirt-gconfig/libvirt-gconfig-domain-video.h
index 9fb8e4d..dda3088 100644
--- a/libvirt-gconfig/libvirt-gconfig-domain-video.h
+++ b/libvirt-gconfig/libvirt-gconfig-domain-video.h
@@ -63,7 +63,7 @@ typedef enum {
     GVIR_CONFIG_DOMAIN_VIDEO_MODEL_XEN,
     GVIR_CONFIG_DOMAIN_VIDEO_MODEL_VBOX,
     GVIR_CONFIG_DOMAIN_VIDEO_MODEL_QXL,
-    GVIR_CONFIG_DOMAIN_VIDEO_MODEL_VIRTIO
+    GVIR_CONFIG_DOMAIN_VIDEO_MODEL_VIRTIO_GPU
 } GVirConfigDomainVideoModel;
 
 GType gvir_config_domain_video_get_type(void);
-- 
2.7.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]