]> xenbits.xensource.com Git - libvirt.git/commit
conf: Introduce virDomainGraphicsDefHasOpenGL helper
authorErik Skultety <eskultet@redhat.com>
Sat, 30 Jun 2018 16:20:33 +0000 (18:20 +0200)
committerErik Skultety <eskultet@redhat.com>
Wed, 18 Jul 2018 16:16:08 +0000 (18:16 +0200)
commit425329181f1db19f34a8ffffc1da9afa7f323f13
treec9a55574cd9127f2814bb7fef302ae69817f0911
parent11c7bdac6dbe8659c2f8bf7a35b97288b0acb207
conf: Introduce virDomainGraphicsDefHasOpenGL helper

A simple helper which will loop through all the graphics elements and
checks whether at least one of them enables OpenGL support, either by
containing <gl enable='yes'/> or being of type 'egl-headless'.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Acked-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms