]> xenbits.xensource.com Git - libvirt.git/commit
network: new function networkGetActualType
authorLaine Stump <laine@laine.org>
Fri, 1 Apr 2016 13:45:51 +0000 (09:45 -0400)
committerLaine Stump <laine@laine.org>
Mon, 4 Apr 2016 11:03:12 +0000 (07:03 -0400)
commit3992ff14e5a5ce041cb6ba68f317101cee9e47d6
tree4a06f6e4bd13465f2d2026bb3dded84afb0d838a
parentd558fb34fd0e410fdaeb993ea43ba733bfb5c528
network: new function networkGetActualType

There are times when it's necessary to learn the actual type of a
network connection before any resources have been allocated
(e.g. during qemuProcessPrepareDomain()), but in the past it was
necessary to call networkAllocateActualDevice() in order to have the
actual type filled in.

This new function returns the type of network that *will be* setup
once it actually happens, but without making any changes on the host.
src/network/bridge_driver.c
src/network/bridge_driver.h