[libvirt] [PATCH libvirt-glib 5/5] config: add accel3d setter

Christophe Fergeau cfergeau at redhat.com
Mon Feb 29 11:34:28 UTC 2016


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 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20160229/38faa177/attachment-0001.sig>


More information about the libvir-list mailing list