]> xenbits.xensource.com Git - libvirt.git/commit
conf: relocate virDomainDeviceDef and virDomainHostdevDef
authorLaine Stump <laine@laine.org>
Thu, 16 Feb 2012 21:41:47 +0000 (16:41 -0500)
committerLaine Stump <laine@laine.org>
Tue, 6 Mar 2012 04:23:13 +0000 (23:23 -0500)
commit4ec60dfbb3a5cfebbe2054fc0f8ab5266aa9e396
treeb4cfe3c63bba8a9a610215efb979d0295d2b7986
parent9890b318c879171f4ea9bfc99401ebfc78cd4b00
conf: relocate virDomainDeviceDef and virDomainHostdevDef

This patch is only code movement + adding some forward definitions of
typedefs.

virDomainHostdevDef (not just a pointer to it, but an actual object)
will be needed in virDomainNetDef and virDomainActualNetDef, so it
must be relocated earlier in the file.

Likewise, virDomainDeviceDef will be needed in virDomainHostdevDef, so
it must be moved up even earlier. This, in turn, creates a forward
reference problem, but fortunately only with pointers to other device
types, so their typedefs can be moved up in the file, eliminating the
problem.
src/conf/domain_conf.h