]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: add missing device types to virDomainDevice(Type|Def)
authorLaine Stump <laine@laine.org>
Wed, 22 Feb 2012 20:54:35 +0000 (15:54 -0500)
committerLaine Stump <laine@laine.org>
Tue, 6 Mar 2012 04:23:01 +0000 (23:23 -0500)
commit9890b318c879171f4ea9bfc99401ebfc78cd4b00
treeee4c5493d73369cc4ca1aba78b553b8fc0363931
parent118cfc2535f99584a7db5a77af707dbf16b46da7
conf: add missing device types to virDomainDevice(Type|Def)

Not all device types were represented in virDomainDeviceType, so some
types of devices couldn't be represented in a virDomainDeviceDef
(which requires a different type of pointer in the union for each
different kind of device).

Since serial, parallel, channel, and console devices are all
virDomainChrDef, and the virDomainDeviceType is never used to produce
a string from the type (and only used in the other direction
internally to code, never to produce XML), I only added one "CHR"
type, which is associated with "virDomainChrDefPtr chr" in the union.
src/conf/domain_conf.c
src/conf/domain_conf.h