]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: put data for network <forward> element into its own struct
authorLaine Stump <laine@laine.org>
Thu, 8 Nov 2012 02:16:17 +0000 (21:16 -0500)
committerLaine Stump <laine@laine.org>
Tue, 11 Dec 2012 10:49:44 +0000 (05:49 -0500)
commit47c94b65632ad23d76ea01c0dc37382e82c4a2ae
treea24c1911462c855ae0a85d41fef762ad25daec17
parent31d21197d37ca67764e16f51eba886275a4d3ab8
conf: put data for network <forward> element into its own struct

The attributes of a <network> element's <forward> element were
previously stored directly in the virNetworkDef object, but
virNetworkUpdateForward() needs to operate on a <forward> in
isolation, so this patchs pulls out all those attributes into a
separate virNetworkForwardDef struct (and shortens their names
appropriately). This new object is contained in the virNetworkDef, not
pointed to by it, so there is no extra memory management.

This patch makes no functional changes, it only changes, e.g.,
"nForwardIfs" to "forward.nifs".
src/conf/network_conf.c
src/conf/network_conf.h
src/esx/esx_network_driver.c
src/network/bridge_driver.c
src/vbox/vbox_tmpl.c