]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network: create separate config object for virNetworkDriverState
authorLaine Stump <laine@redhat.com>
Sun, 13 Mar 2022 18:21:02 +0000 (14:21 -0400)
committerLaine Stump <laine@redhat.com>
Wed, 24 Aug 2022 16:22:47 +0000 (12:22 -0400)
commitb7b949d30c97c050f4e993419ebaed368d4bf59a
tree516dc8364a4fdde5cde06059a7b0a2196d3dbbbf
parent3fcae3c6d44d8e60ea4729696c6c28bf96f533bf
network: create separate config object for virNetworkDriverState

Similar to the other drivers, virNetworkDriverState now has a
virObject-derived object called virNetworkDriverConfig which is used
for config items.

As a starting point, the directory paths used by the network driver
are moved there (again, parallelling what is done for other drivers).

Using items in virNetworkDriverConfig is (yes, again) similar to using
items in the other drivers' config - anything in the config object is
immutable (once initialized), so the state object only needs to be
locked while getting a reference to the config object, and then the
members of the config object can be safely used until the config
object is unrefed.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
po/POTFILES
src/network/bridge_driver.c
src/network/bridge_driver_conf.c
src/network/bridge_driver_conf.h