mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 19:41:16 +00:00
conf: Add virDomainDefHasSpiceGraphics
It will be used in future patch in multiple places. Signed-off-by: Martin Kletzander <mkletzan@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
90d36d625e
commit
45c0ff3eea
@ -31558,3 +31558,17 @@ virDomainObjGetMessages(virDomainObj *vm,
|
|||||||
|
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
virDomainDefHasSpiceGraphics(const virDomainDef *def)
|
||||||
|
{
|
||||||
|
size_t i = 0;
|
||||||
|
|
||||||
|
for (i = 0; i < def->ngraphics; i++) {
|
||||||
|
if (def->graphics[i]->type == VIR_DOMAIN_GRAPHICS_TYPE_SPICE) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
@ -4277,3 +4277,6 @@ int
|
|||||||
virDomainObjGetMessages(virDomainObj *vm,
|
virDomainObjGetMessages(virDomainObj *vm,
|
||||||
char ***msgs,
|
char ***msgs,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
|
bool
|
||||||
|
virDomainDefHasSpiceGraphics(const virDomainDef *def);
|
||||||
|
@ -333,6 +333,7 @@ virDomainDefHasMemoryHotplug;
|
|||||||
virDomainDefHasNVMeDisk;
|
virDomainDefHasNVMeDisk;
|
||||||
virDomainDefHasOldStyleROUEFI;
|
virDomainDefHasOldStyleROUEFI;
|
||||||
virDomainDefHasOldStyleUEFI;
|
virDomainDefHasOldStyleUEFI;
|
||||||
|
virDomainDefHasSpiceGraphics;
|
||||||
virDomainDefHasUSB;
|
virDomainDefHasUSB;
|
||||||
virDomainDefHasVcpusOffline;
|
virDomainDefHasVcpusOffline;
|
||||||
virDomainDefHasVDPANet;
|
virDomainDefHasVDPANet;
|
||||||
|
Loading…
Reference in New Issue
Block a user