On Fri, Feb 26, 2016 at 12:37:12PM +0100, Marc-André Lureau wrote:
Learn to set the accel3d attribute on video model.
Signed-off-by: Marc-André Lureau <marcandre.lureau(a)gmail.com>
---
examples/config-demo.py | 1 +
diff --git a/examples/config-demo.py b/examples/config-demo.py
index 3fdc367..e92aa43 100644
--- a/examples/config-demo.py
+++ b/examples/config-demo.py
@@ -63,6 +63,7 @@ domain.add_device(graphics)
video = LibvirtGConfig.DomainVideo.new()
video.set_model(LibvirtGConfig.DomainVideoModel.VIRTIO)
+video.set_accel3d(True)
domain.add_device(video)
console = LibvirtGConfig.DomainConsole.new()
For what it's worth, there is tests/test-gconfig.c which tries to test
that libvirt-gconfig setters/getters are consistent, and which checks
that the generated XML is the expected one. This is probably a better
place than config-demo.py to add some test code in the future.
Christophe