]> xenbits.xensource.com Git - libvirt.git/commit
util: make virNetDev(Get|Set)IFFlags() static
authorLaine Stump <laine@laine.org>
Fri, 30 Jan 2015 16:56:15 +0000 (11:56 -0500)
committerLaine Stump <laine@laine.org>
Mon, 2 Feb 2015 19:50:19 +0000 (14:50 -0500)
commitdf2cc650c0eed5878d805a7574f59aa045fe5e18
tree9d1fe1ab9839d14e05d76cc89324e184c29f7518
parent1d2e4d8ca2ae84b5ac5bc63c36d3f75afaac136d
util: make virNetDev(Get|Set)IFFlags() static

e562a61a0739 added these two new helper functions and only used them
within virnetdev.c, but declared them in the .h file. If some
currently unsupported interface flags need to be accessed in the
future, it will make more sense to write the appropriate higher level
function rather than require us to artificially define IFF_* on some
mythical platform that doesn't have SIOC[SG]IFFLAGS (and therefore
doesn't have IFF_*) just so we can call virNetDevSetIFFFlags() to
return an error.

To help someone in not going down the wrong road, this patch makes the
two helper functions static, hopefully making it less likely that
someone will want to use them outside of virnetdev.c.
src/util/virnetdev.c
src/util/virnetdev.h